According to the PancakeSwap docs, swapExactTokensForETH
will only give back BNB. I am on the Moralis Discord as โgladโ.
Are you online on the server now? i cant find you under moralis team
Hey runContractFunction
is read-only, thereโs no wallet in the backend to pay that gas fee to approve
Also @alex here is a part of active community member, you can feel free ask him anything
Thanx for your answer. I applied the approve function on the frontend as you said and when i click the approve button on the web application the metamask pops up and i pay the approve fees.
Should I implement approve function on the backend also? or it should be another solution?
And I would Thank you guys for supporting. Amazing Team
Sorry should have mentioned id: glad#4139.
You can move things to a backend once you have everything working here first, best to keep things as simple as possible until you know itโs working.