Skip to main content

Estimate Bridge Fee

GET 

/2.0/wallets/:walletIdx/bridges/estimate-fee

This API can be called with a Global Token. Estimates the total bridge fee for the given bridgeTunnelIdx and amount.

Fee types​

source​

FieldMeaning
transactionFeeSource-chain gas fee (in the source platform coin). Sum of the approve and source bridge steps.
bridgeNativeFeeNative fee the bridge protocol receives via msg.value (in the source platform coin), e.g. the LayerZero/Wormhole/Stargate messaging fee. Currently 0 for CCTP.
bridgeTokenFeeFee the bridge protocol deducts from the bridged token (in the bridge coin), e.g. the CCTP v2 maxFee or Stargate LP fee. It is deducted on the source side, so the destination receives less. Currently 0 for CCTP.

destination​

FieldMeaning
transactionFeeDestination-chain gas fee (in the destination platform coin): the cost of the finalizing transaction, such as receiveMessage. 0 if the tunnel has no destination step. There is no bridge protocol fee on the destination side; all protocol fees are charged on the source side.

Request​

Responses​

Success