get_quote
Generate a trade quote by specifying source and destination tokens, amount, and optional blockchain details for accurate simulation and analysis.
Instructions
Get a quote for a potential trade
Input Schema
Name | Required | Description | Default |
---|---|---|---|
amount | Yes | Amount of fromToken to potentially trade | |
fromChain | No | Optional blockchain type for source token | |
fromSpecificChain | No | Optional specific chain for source token | |
fromToken | Yes | Source token address | |
toChain | No | Optional blockchain type for destination token | |
toSpecificChain | No | Optional specific chain for destination token | |
toToken | Yes | Destination token address |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"amount": {
"description": "Amount of fromToken to potentially trade",
"type": "string"
},
"fromChain": {
"description": "Optional blockchain type for source token",
"enum": [
"svm",
"evm"
],
"type": "string"
},
"fromSpecificChain": {
"description": "Optional specific chain for source token",
"enum": [
"eth",
"polygon",
"bsc",
"arbitrum",
"base",
"optimism",
"avalanche",
"linea",
"svm"
],
"type": "string"
},
"fromToken": {
"description": "Source token address",
"type": "string"
},
"toChain": {
"description": "Optional blockchain type for destination token",
"enum": [
"svm",
"evm"
],
"type": "string"
},
"toSpecificChain": {
"description": "Optional specific chain for destination token",
"enum": [
"eth",
"polygon",
"bsc",
"arbitrum",
"base",
"optimism",
"avalanche",
"linea",
"svm"
],
"type": "string"
},
"toToken": {
"description": "Destination token address",
"type": "string"
}
},
"required": [
"fromToken",
"toToken",
"amount"
],
"type": "object"
}