[SOLVED] 1Inch plugin, errors when using bsc network

thank you very much, i will check

with your code and my testnet server

2022-05-26 17_54_39-Swap Space D

I’m going crazy: (I don’t understand why it doesn’t go with bnb

What is the error message associated with that 400 error code?
You should be able to see it in network tab in browser

{“result”:{“status”:200,“data”:{“success”:true,“result”:{“error”:422,“message”:“Missing parameters”}}}}

That is in response?
You can also look at the sent payload

2022-05-26 19_04_14-Swap Space D

{“chain”:“bsc”,“fromTokenAddress”:“0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee”,“toTokenAddress”:“0x55d398326f99059ff775485246999027b3197955”,“amount”:1000000000000000000,“fromAddress”:“0xb1881beda759b8c4e0a71521ba9543fef5889e90”,“slippage”:49,"_ApplicationId":“Vekfg0LulQYGrKA1CvfgRjhktqCQD7wMXNIHmoqv”,"_ClientVersion":“js1.7.0”,"_InstallationId":“97a43697-8a7a-4823-a454-46428db1c2b3”,"_SessionToken":“r:93e74393d7f8f2c79198aadc10c02b76”}

2022-05-26 19_06_35-Swap Space D

my code for help me :frowning:
https://spaced.altervista.org/swap.zip

contains only 3 files

found the problem, I have no BNB in ​​the wallet

“Not enough 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE.”

but I thought it was opening metamask with the XD message

1 Like

thanks everyone for the time

1 Like

nice to hear that you solved it :slight_smile: