Understanding Bridging Costs
The 0x Cross-Chain API is in private beta. Request access to start building.
This page explains all the costs related to executing a cross-chain swap, and where each of the costs appears in the quote response.
The fees Object
Each quote includes a fees object breaking down the explicit costs:
Integrator Fees (integratorFees)
Fees you collect as the integrator. Only present when feeBps and feeRecipient are passed in the request. Deducted from sellAmount. See Monetize Your App for setup instructions.
0x Fee (zeroExFee)
Fee collected by the 0x API. Deducted from sellAmount. Null when not applicable.
Bridge Native Fee (bridgeNativeFee)
A fee charged by the bridge provider in the chain’s native token for cross-chain messaging infrastructure. It is not deducted from the sellAmount. Instead, it is added to the transaction’s value field on EVM chains and it is paid by the user in native tokens, additionally to the sellAmount. It will be null when the bridge doesn’t charge it.
All other bridges do not charge a native fee. Make sure to always inspect bridgeNativeFee in response, as the list of bridges that charge an extra native fee might change in the future.
Internal Bridge Fees
All bridge providers can also charge their own internal fees (spreads, relayer fees, etc.) for facilitating the cross-chain transfer. These are already factored into buyAmount and minBuyAmount in the quote and they are not shown separately in the fees object.
Gas Costs
The quote includes a gasCosts object estimating the transaction cost on the origin chain. The shape depends on chain type:
EVM
Solana (SVM)
All values in lamports (1 SOL = 1,000,000,000 lamports).
Tron (TVM)
All values in sun (1 TRX = 1,000,000 sun).