QUOTE
Get real-time price quotes for token swaps on decentralized exchanges. Input token addresses and amounts to calculate exchange rates across multiple blockchain networks.
Instructions
Quote the price of a specific trading pair
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | The blockchain network to execute the transaction on. uses fraxtal as default | fraxtal |
| inTokenAddress | Yes | The token to swap from (address). | |
| outTokenAddress | Yes | The token to swap to (address). | |
| amount | Yes | Token amount with decimals. For example, if 1 USDT is input, use 1000000 (1 USDT * 10^6). | |
| slippage | No | Define the acceptable slippage level by inputting a percentage value within the range of 0.05 to 50. 1% slippage set as 1. | 1 |
Input Schema (JSON Schema)
{
"properties": {
"amount": {
"description": "Token amount with decimals. For example, if 1 USDT is input, use 1000000 (1 USDT * 10^6). ",
"pattern": "^\\d+$",
"type": "string"
},
"chain": {
"default": "fraxtal",
"description": "The blockchain network to execute the transaction on. uses fraxtal as default",
"type": "string"
},
"inTokenAddress": {
"description": "The token to swap from (address).",
"type": "string"
},
"outTokenAddress": {
"description": "The token to swap to (address).",
"type": "string"
},
"slippage": {
"default": "1",
"description": "Define the acceptable slippage level by inputting a percentage value within the range of 0.05 to 50. 1% slippage set as 1.",
"type": "string"
}
},
"required": [
"inTokenAddress",
"outTokenAddress",
"amount"
],
"type": "object"
}