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 free

Suggested 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

nameintypedescription
inputTokenquerystrrequiredOrigin-chain token contract address.
example: 0xaf88d065e77c8cC2239327C5EDb3A432268e5831
outputTokenquerystrrequiredDestination-chain token contract address.
example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
originChainIdquerystrrequiredOrigin chain id (hub aliases accepted).
example: arbitrum
destinationChainIdquerystrrequiredDestination chain id (hub aliases accepted).
example: base
amountquerystrrequiredInput amount in token base units (USDC has 6 decimals).
example: 100000000
recipientquerystroptionalOptional recipient used for the fill simulation.
messagequerystroptionalOptional calldata for a contract recipient.
relayerquerystroptionalOptional relayer override for the fill simulation.
timestampqueryintoptionalOptional quote timestamp used for the LP-fee calculation.
allowUnmatchedDecimalsquerybooloptionalAllow 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"