swap
swap tokens
/bsc/pcs/swap
Query Parameters
Name
Type
Description
Request Body
Name
Type
Description
{
isError: false,
errorMsg: 'NA',
methodName: 'swapExactTokensForTokens',
rawTx: {
from: '0x5585d5365f37671eecc0fdcac5a06bd1d176408e',
value: '0x0',
to: '0x05ff2b0db69458a0750badebc4f9e13add608c7f',
data: '0x38ed173900000000000000000000000000000000000000000000000000b03006698f2000000000000000000000000000000000000000000000000000c21f642a306e780000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000005585d5365f37671eecc0fdcac5a06bd1d176408e00000000000000000000000000000000000000000000000000000000605059200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000a184088a740c695e156f91f5cc086a06bb78b827000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000e9e7cea3dedca5984780bafc599bd69add087d560000000000000000000000000e09fabb73bd3ade0a17ecc321fd13a19e81ce82',
nonce: '0xf24',
gasLimit: '0x7a120',
gasPrice: '0x2540be400'
}
}Sample code to swap 0.05 AUTO token to BUSD through pancake swap
Last updated