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.
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. |