For an overview of transfer fees head over to: GMP Transfer
Fees
Estimating Fees
To estimate both fees, useestimateTransferRemoteFees:
interchainQuote: Fee to route the message to the destination chain (via IGP)localQuote: Gas cost to send the tx on the origin chain
amount: The quantity of tokens requiredtoken: The token metadata (including chain, decimals, and symbol)
Using the Fee in Transfers
When making a transfer, you can provide the pre-computed fee quote:How It Works
Under the hood, the SDK usesMailbox.quoteDispatch() to compute the interchain fee. This is the same value that must be passed to dispatch.
Contract-Level Fee Quoting
New in version 10.0.0: Warp route contracts now expose a standardized
quoteTransferRemote function for on-chain fee quoting.quoteTransferRemote function:
- Native Fee (
quotes[0]): Must be sent asmsg.valuetotransferRemote - Token Amount (
quotes[1]): Total tokens to approve/send, including fees - External Fee (
quotes[2]): Additional bridge fees (already included inquotes[1])