Set your transfer parameters
Before you can send tokens or messages, you'll need to set your parameters.
const params = {
fromChain: 43113, // Avalanche Fuji Tesntet
fromToken: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", // AVAX on Avalanche
fromAddress: "0x6A32651F7D6131A0cAB2c649190F3B256f1A959D" // address of the sender
fromAmount: "100000000000000000", // 0.1 AVAX
toChain: "osmo-test-5", // Osmosis Testnet
toToken: "ibc/DE6792CF9E521F6AD6E9A4BDF6225C9571A3B74ACC0A529F92BC5122A39D2E58", // nUSDC on Osmosis
toAddress: "osmo16xz3ujtdszrqzzjqpx79wuxya3w27jn9khnumm", // the recipient of the tokens on Osmosis
slippage: 1.00, // 1.00 = 1% max slippage across the entire route
fromAddress: "0x747A6e3824FAB0d1266306C3b492fcB941C5dd93", // Fallback address for the EVM Side
quoteOnly: false // optional, defaults to false, if true there are less params required by the api, but no tx object is returned
};const params = {
fromChain: "osmo-test-5", // Osmosis Testnet
fromToken: "ibc/DE6792CF9E521F6AD6E9A4BDF6225C9571A3B74ACC0A529F92BC5122A39D2E58", // nUSDC on Osmosis
fromAmount: "1000000", // 1 nUSDC
toChain: 43113, // Avalanche Fuji Tesntet
toToken: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", // AVAX on Avalanche
toAddress: "0x747A6e3824FAB0d1266306C3b492fcB941C5dd93", // the recipient of the trade on Avalanche
slippage: 1.00, // 1.00 = 1% max slippage across the entire route
fromAddress: "osmo1eaztm3pqrkw2xgt0lxppahtx5v5pndmjg6yfrh", // Cosmos Sender address
quoteOnly: false // optional, defaults to false
};Request Params:
Property
Description
Sending/receiving native tokens (EVM chains only)
Last updated