get_token_price_estimate
Calculate real-time token swap prices across multiple EVM chains to determine optimal trading outcomes before executing cross-chain transactions.
Instructions
Get real-time price estimate for token swap.
Args:
chain_id: Chain ID (1, 10, 56, 100, 137, 8453, 42161)
input_token_address: Address of token to trade from
output_token_address: Address of token to trade to
input_amount: Amount of input token in wei format
Returns:
JSON string with price estimate and trading information.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain_id | Yes | ||
| input_token_address | Yes | ||
| output_token_address | Yes | ||
| input_amount | Yes |
Input Schema (JSON Schema)
{
"properties": {
"chain_id": {
"title": "Chain Id",
"type": "string"
},
"input_amount": {
"title": "Input Amount",
"type": "string"
},
"input_token_address": {
"title": "Input Token Address",
"type": "string"
},
"output_token_address": {
"title": "Output Token Address",
"type": "string"
}
},
"required": [
"chain_id",
"input_token_address",
"output_token_address",
"input_amount"
],
"type": "object"
}