hi, please help me how to code a withdraw function, when a user withdraw bnb coin in my Dapp, Now moralis is support for sending transaction (for user deposit to Dapp which prompted by metamask confirm, but my Dapp have a withdraw function which tranfer fund of Dapp to user, how to automatic tranfer fund from Dapp to user) , thank for help!!
You’ll have to write some web3 code for now in order to call that withdraw function.
You can look at this code as an example of using web3: https://github.com/MoralisWeb3/Moralis-JS-SDK/blob/8d58cb893d1f4ad363267787a20a795c486e7be8/src/MoralisWeb3.js#L260
ok thank for help, i will use web3 for sending transaction, i think moralis support it but not.