Hey, I am using 1inch API to swap from BNB/MATIC/ETH to token but it doesn’t work
it work for token swap but when I try to swap native coin to any token it doesn’t work, I get very big amount in confirmation pop up
also I use same response on TrustWallet and it is working perfectly
here is API response that I send in params
![Screenshot 2023-06-09 at 2.43.23 PM|266x499](upload://zvamG5ouP34Rmf0ntkuf6fuujCt.jpeg)
I am using Flutter, 1inch API and Android/IOS
Hello @AmjadKhan2k18 !
Thanks for reporting!
Could you provide on the steps you take specifically when interacting with the swap 1inch API function ? Or provide source code with request and response object.
Perhaps there are some error logs in the console ?
Hello @snwlprd.eth Thanks for quick response
there is no error in console
QA reported on IOS the amount is correct but when she tried to confirm transaction she got error
here is API and I use tx of response Map
api . 1inch dot io/ v5.0/56/swap?fromTokenAddress=0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE&toTokenAddress=0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56&amount=422181600000000&fromAddress=0xab4c8a98bd030029cf08ae5198bd6a347c2e12ec&slippage=10
You should test this using various RPC nodes. Some may not work correctly.
@snwlprd.eth but it’s working for token swap, I tried to swap USDT to MATIC/USDC and it worked perfectly and it worked for BUSD → BNB too
I don’t think it’s problem of RPC nodes
and same API work on TrustWallet for native coins
@snwlprd.eth how to test with various RPC nodes?
The Chainlist website has a list of available RPC nodes for BSC network:
@snwlprd.eth I test it with different RPC nodes but none worked
You should open an issue in the official MetaMask repository if you haven’t already.
Yes I created an issue there
Great! I am not an expert in Flutter development, so deploying your case pattern will take some time
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.