Search
⌘K
Cross-Chain Swaps (Fusion+)
API version: All versions
Introduction
Quick Start
EVM → EVM
EVM → Solana
Solana → EVM
Orders
Get cross chain swap active orders GET
Get actual escrow factory contract address (v2 for fee-enabled orders) GET
Get orders by maker address GET
Get all data to perform withdrawal and cancellation GET
Get idx of each secret that is ready for submission for specific order GET
Get idx of each secret that is ready for submission for all orders GET
Get all data to perform a cancellation or withdrawal on public periods GET
Get order by hash (v1.2 with fee support) GET
Get orders by hashes (v1.2 with fee support) POST
Get cross chain swap cancelable orders by chain GET
Get cross chain swap active orders GET
Get actual escrow factory contract address GET
Get orders by maker address GET
Get all data to perform withdrawal and cancellation GET
Get idx of each secret that is ready for submission for specific order GET
Get idx of each secret that is ready for submission for all orders GET
Get all data to perform a cancellation or withdrawal on public periods GET
Get order by hash GET
Get orders by hashes POST
Get cross chain swap cancelable orders by chain GET
Quoter
Get quote details based on input data with fee support (v1.2) GET
Get quote with custom preset details (v1.2 with fee support) POST
Build EVM order by given quoteId (v1.2) POST
Build create order unsigned transaction for Solana (v1.2) POST
Get quote details based on input data GET
Get quote with custom preset details POST
Get quote details based on input data GET
Get quote with custom preset details POST
Build order by given quote POST
Build create order unsigned transaction POST
Relayer
Submit a cross-chain order with fee support that resolvers will be able to fill POST
Submit many cross chain orders with fee support that resolvers will be able to fill POST
Submit a secret for order fill after SrcEscrow and DstEscrow deployed and DstChain finality lock passed POST
Submit a cross-chain order that resolvers will be able to fill POST
Submit many cross chain orders that resolvers will be able to fill POST
Submit a secret for order fill after SrcEscrow and DstEscrow deployed and DstChain finality lock passed POST
SDK
Overview
When and how to submit a secret
Swapping a native token with Cross-Chain Swap
Auction Calculator
WebSocket API
Docs·APIs·Swap API·Cross-Chain Swaps (Fusion+)·SDK·Auction Calculator

Auction Calculator

The AuctionCalculator class computes taker amounts and auction rate bumps from a limit order struct. This is useful for understanding how the Dutch auction mechanism determines pricing over time.

Key Methods

  • AuctionCalculator.fromLimitOrderV3Struct(order) — Creates a calculator instance from a LimitOrderV3Struct
  • calcRateBump(blockTimestamp) — Returns the auction rate bump at a given timestamp (in basis points)
  • calcAuctionTakingAmount(takingAmount, rateBump) — Returns the adjusted taker amount after applying the rate bump

LimitOrderV3Struct Fields

Name Type Description
salt string Unique value to differentiate orders with identical parameters
makerAsset string Token address the maker is selling
takerAsset string Token address the maker is buying
maker string Address of the order creator
receiver string Address to receive taker asset (zero address = maker address)
allowedSender string Restricts who can fill (zero address = anyone)
makingAmount string Amount of maker asset
takingAmount string Amount of taker asset
offsets string Byte offsets for interaction parsing
interactions string Encoded Fusion-specific data (auction points, resolvers, timing, flags)

Did you find what you need?