GET /suggested-fees
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/across/suggested-feesCache cached 10s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeSuggested bridge fee quote for an exact input amount: fill time, capital/relay/LP fee split, total relay fee, quote block, exclusivity and implied output amount.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
inputToken | query | str | required | Origin-chain token contract address. example: 0xaf88d065e77c8cC2239327C5EDb3A432268e5831 |
outputToken | query | str | required | Destination-chain token contract address. example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 |
originChainId | query | str | required | Origin chain id (hub aliases accepted). example: arbitrum |
destinationChainId | query | str | required | Destination chain id (hub aliases accepted). example: base |
amount | query | str | required | Input amount in token base units (USDC has 6 decimals). example: 100000000 |
recipient | query | str | optional | Optional recipient used for the fill simulation. |
message | query | str | optional | Optional calldata for a contract recipient. |
relayer | query | str | optional | Optional relayer override for the fill simulation. |
timestamp | query | int | optional | Optional quote timestamp used for the LP-fee calculation. |
allowUnmatchedDecimals | query | bool | optional | Allow routes whose tokens have different decimals. |
Response
type: object
pagination: none
sample: {
"estimatedFillTimeSec": "int",
"capitalFeePct": "str",
"capitalFeeTotal": "str",
"relayGasFeePct": "str",
"relayGasFeeTotal": "str",
"relayFeePct": "str",
"relayFeeTotal": "str",
"lpFeePct": "str",
"timestamp": "str",
"isAmountTooLow": "bool",
"quoteBlock": "str",
"exclusiveRelayer": "str",
"exclusivityDeadline": "int",
"spokePoolAddress": "str",
"destinationSpokePo
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/across/suggested-fees?inputToken=0xaf88d065e77c8cC2239327C5EDb3A432268e5831&outputToken=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&originChainId=arbitrum&destinationChainId=base&amount=100000000"