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
| Property | Type | Description |
|---|---|---|
destinationChain | ExternalNetwork | Destination chain (the fee is a per-transfer cost: it does not depend on the amount) |
tokenId | TokenClassKeyInput | Token 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' } |
destination chain external network token id class key input fetch all bridgeable tokens by stringified additional