How to code a withdraw function when user withdraw

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:

ok thank for help, i will use web3 for sending transaction, i think moralis support it but not.