Route Request Parameters
const params = {
fromChain: number | string; //the chainID assets are being bridged FROM
toChain: number | string; //the chainID assets are being bridged TO
fromToken: string; //the asset address being swapped FROM, "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" for native assets
toToken: string; // The asset address being swapped TO, "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" for native assets
fromAmount: string; // The unadjusted decimal amount assets
fromAddress: string; // The address FROM which assets are being sent to be bridged
toAddress: string; // The address TO which bridged assets will be sent to
slippage?: number; //OPTIONAL, If set it determines the max slippage across the route (0.01-99.99) 1 = 1% slippage.
quoteOnly?: boolean; //OPTIONAL, If true, returns only a quote for the route. Omits transaction data needed for execution. Defaults to false
enableExpress?: boolean; //OPTIONAL, Utilizes Axelar's Express message passing for an additional small fee to expedite the crosschain transaction. Defaults to true
prefer?: string[]; // When set, the route response will prefer routes from the DEX corresponding to the string. EVM chains only supported.
receiveGasOnDestination?: boolean;
collectFees?: {
integratorAddress: string; //The EVM address of the integrator that will receive the fee
fee: number; // The amount in "basis points" for the fee. 50 = 0.05%. there is currently soft limit of 1% fee allowed for each tx.
};
fallbackAddresses?:{
//For Cosmos routes where either the source or destination chains are not of coinType 118, the SDK necessitates an additional argument.
///This argument is fallbackAddresses, which is an array of objects containing an address and its associated coin type.
//See more here
coinType: number;
address: string;
};
};
Parameter Summaries
Last updated