Appearance
Models
The Token object
Token
| Field | Type | Required | Description |
|---|---|---|---|
address | string | Token address | |
symbol | string | Token symbol |
The TokenOut object
TokenOut
| Field | Type | Required | Description |
|---|---|---|---|
address | string | Token address | |
symbol | string | Token symbol | |
swaps | array of object |
The Swap object
Swap
| Field | Type | Required | Description |
|---|---|---|---|
pair | string | Pair address | |
tokenIn | Token | Input token | |
tokenOut | TokenOut | Output token with swaps | |
amountBp | integer | Percentage of input token used for this swap in basis points |
The TokenWithSwaps object
TokenWithSwaps
Type: any
The QuoteResponse object
QuoteResponse
| Field | Type | Required | Description |
|---|---|---|---|
tokenIn | TokenWithSwaps | ||
tokenOut | Token | ||
amountIn | string | Input token amount | |
amountOut | string | Output token amount | |
aggregator | string | Aggregator identifier |
The SwapResponse object
SwapResponse
| Field | Type | Required | Description |
|---|---|---|---|
from | string | Transaction from address | |
to | string | Transaction to address | |
data | string | Transaction data | |
value | string | Transaction value | |
gas | string | Gas limit | |
gasPrice | string | Gas price |
The Error object
Error
| Field | Type | Required | Description |
|---|---|---|---|
error | string | Error message |
