Aggregator API
Query Superior Swap Rates
Public API
Supported Networks
API Documentation
Address of the input token
0x1514000000000000000000000000000000000000Chain ID of the input token
1315Address of the output token
0xd1fa5456186758b84811b929b4d696178fb56ee3Chain ID of the output token
1315Amount of tokens to swap (in base units)
100000000000Type of quote
exactInPossible values: Comma-separated list of protocols to include in the quote, available protocols v2, v3, v3s1, default v3
v2,v3,v3s1,mixedAvailable Chain IDs:
- 1315: Aeneid Story Testnet
- 1514: Story Mainnet
1315Possible values: Successful response with quote information
Current block number when quote was generated
4172602Amount of tokens to be swapped (in base units)
10000000000000000000Amount with proper decimal formatting
10The quoted amount for the swap (in base units)
23380751936294484817899Quote with proper decimal formatting
23380.751936294484817899Quote adjusted for gas costs (in base units)
23380750164225210864289Gas-adjusted quote with proper decimal formatting
23380.750164225210864289Estimated gas usage for the swap
783000Cost of gas in quote currency (in base units)
1772069273953609Gas cost with proper decimal formatting
0.001772069273953609Cost of gas in USD
0.000003Status of the transaction simulation
UNATTEMPTEDPossible values: Whether there was an error during simulation
falseCurrent gas price in wei
1000090Human-readable representation of the route
[V3] 100.00% = WIP -- 0.05% [0x0bB8Df520A2c1Bf8B50D0a7b326a0Df295069431]USDC.e -- 0.3% [0xFD061584f1F88F24fe11Dfa12B9D283afe2FC9F8]BENJIUnique identifier for this quote
2674aWhether the quote used cached route data
falsePrice impact of the swap as a percentage
0.1Bad request - invalid parameters
Server error
Example Request
Protocols
Last updated