API Reference
Integer ID of the blockchain
1Address of sell token. For native tokens, use either
0x0000000000000000000000000000000000000000 or 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
0x853d955acef822db058eb8505911ed77f175b99eAddress of buy token. For native tokens, use either
0x0000000000000000000000000000000000000000 or 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
0x1f9840a85d5af5bf1d1762f925bdaddc4201f984Amount of sellToken to sell (in base units). Exactly one of sellAmount or buyAmount must be provided.
10000000000000000000000Amount of buyToken to buy (in base units). Exactly one of sellAmount or buyAmount must be provided.
1000000000000000000Whether to use market maker RFQ liquidity
falseExample: falseRouter contract unique name
default-routerExample: swapnet-routerPossible values: Whether to include calldata in the response
falseExample: falseUser's wallet address. Required when includeCalldata=true
0x11b86991c6218b36c1d19d4a2e9eb0ce3606eb49Slippage tolerance (0.01 = 1%). Required when includeCalldata=true
0.01Your API key
your-api-key-hereSuccessful swap routing response
Name of the aggregator service
swapnetRouter contract unique name used
default-routerCurrent price of the native token on this chain
4622.638914277432Address of router contract (only when includeCalldata=true)
0x616000e384Ef1C2B52f5f3A88D57a3B64F23757eCalldata to settle the trade (only when includeCalldata=true)
0x87395540000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001c0Estimated upper bound of gas consumption (only when includeCalldata=true)
1200000Bad request - Invalid parameters
Internal server error
Integer ID of the blockchain
1Your API key
your-api-key-hereSuccessful tokens response
Token contract address
0x853d955acef822db058eb8505911ed77f175b99eToken name
FraxToken symbol
FRAXNumber of decimal places for the token
18Bad request - Invalid parameters
Internal server error
Your API key
your-api-key-hereSuccessful chains response
Unique identifier for the blockchain network
1Human-readable name of the blockchain network
EthereumBad request - Invalid parameters
Internal server error
Integer ID of the blockchain
1Your API key
your-api-key-hereSuccessful chain info response
Unique identifier for the blockchain network
1Human-readable name of the blockchain network
EthereumAddress of the primary USD-pegged token on this chain
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48Address of the wrapped native token (e.g., WETH, WMATIC)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2Bad request - Invalid parameters
Internal server error
Last updated