get_quote
Obtain swap quotes for token trading on Casper Network, showing amounts, price impact, and routing paths before executing trades.
Instructions
Get a swap quote for trading between two tokens. Returns amounts, price impact, and routing path.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"token_in": "<token_in>",
"token_out": "<token_out>",
"amount": "<amount>",
"type": "<type>"
},
"name": "get_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_in | Yes | Input token: symbol (e.g., "CSPR"), name, or contract hash | |
| token_out | Yes | Output token: symbol (e.g., "USDT"), name, or contract hash | |
| amount | Yes | Human-readable amount (e.g., "100" for 100 CSPR) | |
| type | Yes | "exact_in" = specify input amount, "exact_out" = specify desired output amount |