getAcrossFeeQuote
Calculate the fee quote for bridging tokens across chains using the Across Protocol REST API. Specify input/output tokens, chain IDs, amount, and recipient for accurate cost estimation.
Instructions
Fetches a suggested fee quote for a cross-chain asset bridge using the Across Protocol REST API.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
amount | Yes | Amount of tokens to bridge (in ether) | |
destinationChainId | Yes | Chain ID of the destination chain. | |
inputToken | Yes | The token contract address on the origin chain (e.g., WETH address). | |
originChainId | Yes | Chain ID where the input token exists. | |
outputToken | Yes | The token contract address on the destination chain (e.g., corresponding WETH address). | |
recipient | Yes | Recipient address on the destination chain. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"amount": {
"description": "Amount of tokens to bridge (in ether)",
"type": "string"
},
"destinationChainId": {
"description": "Chain ID of the destination chain.",
"type": "number"
},
"inputToken": {
"description": "The token contract address on the origin chain (e.g., WETH address).",
"type": "string"
},
"originChainId": {
"description": "Chain ID where the input token exists.",
"type": "number"
},
"outputToken": {
"description": "The token contract address on the destination chain (e.g., corresponding WETH address).",
"type": "string"
},
"recipient": {
"description": "Recipient address on the destination chain.",
"type": "string"
}
},
"required": [
"inputToken",
"outputToken",
"originChainId",
"destinationChainId",
"amount",
"recipient"
],
"type": "object"
}