Skip to main content

bridge/interfaces/EstimateBridgeFeeParams.md

Parameters for estimating bridge fees

Examples​

Using string tokenId (pipe-delimited)

const fee = await sdk.estimateBridgeFee({
tokenId: 'GALA|Unit|none|none',
destinationChain: 'Ethereum',
});

Using TokenClassKey object

const fee = await sdk.estimateBridgeFee({
tokenId: { collection: 'GALA', category: 'Unit', type: 'none', additionalKey: 'none' },
destinationChain: 'Ethereum',
});

Properties​

PropertyTypeDescription
destinationChainExternalNetworkDestination chain (the fee is a per-transfer cost: it does not depend on the amount)
tokenIdTokenClassKeyInputToken identifier - accepts pipe-delimited string or TokenClassKey object. Get from fetchAllBridgeableTokensByNetwork() result's stringifiedTokenClassKey field, or construct manually: { collection: 'GALA', category: 'Unit', type: 'none', additionalKey: 'none' }