estimate_fees
Calculate bridge and swap fees before execution to compare routes and understand total costs, including gas and relayer fees.
Instructions
Estimate the fees for a bridge or swap without committing to execution. Returns a breakdown of gas fees, relayer fees, and total cost impact. Useful for comparing routes or showing users expected costs.
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": {
"originChainId": "<originChainId>",
"destinationChainId": "<destinationChainId>",
"originCurrency": "<originCurrency>",
"destinationCurrency": "<destinationCurrency>",
"amount": "<amount>",
"sender": "<sender>"
},
"name": "estimate_fees"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| originChainId | Yes | Source chain ID. | |
| destinationChainId | Yes | Destination chain ID. | |
| originCurrency | Yes | Origin token address. "0x0000000000000000000000000000000000000000" for native. | |
| destinationCurrency | Yes | Destination token address. "0x0000000000000000000000000000000000000000" for native. | |
| amount | Yes | Amount in the origin token's smallest unit. | |
| sender | Yes | Sender wallet address. |