[quote="cryptokid, post:33, topic:4354"]
quote3 = await Moralis.Plugins.oneInch.quote({
chain: ‘bsc’, // The blockchain you want to use (eth/bsc/polygon)
fromTokenAddress: “0x7083609fce4d1d8dc0c979aab8c869ea2c873402”, // The token you want to swap
toTokenAddress: “0x55d398326f99059ff775485246999027b3197955”, // The token you want to receive
amount: “1000000000000000000000”,
});
[/quote]
quote3 = await Moralis.Plugins.oneInch.quote({
chain: 'bsc', // The blockchain you want to use (eth/bsc/polygon)
fromTokenAddress: "0x7083609fce4d1d8dc0c979aab8c869ea2c873402", // The token you want to swap
toTokenAddress: "0x55d398326f99059ff775485246999027b3197955", // The token you want to receive
amount: "1000000000000000000000",
});
{fromToken: {…}, toToken: {…}, toTokenAmount: '27002990345225343336448', fromTokenAmount: '1000000000000000000000', protocols: Array(1), …}estimatedGas: 635672fromToken: {symbol: 'DOT', name: 'DOT', decimals: 18, address: '0x7083609fce4d1d8dc0c979aab8c869ea2c873402', logoURI: 'https://tokens.1inch.io/0x7083609fce4d1d8dc0c979aab8c869ea2c873402.png'}fromTokenAmount: "1000000000000000000000"protocols: [Array(2)]toToken: {symbol: 'USDT', name: 'Tether USD', decimals: 18, address: '0x55d398326f99059ff775485246999027b3197955', logoURI: 'https://tokens.1inch.io/0xdac17f958d2ee523a2206206994597c13d831ec7.png'}toTokenAmount: "27002990345225343336448"[[Prototype]]: Object