My idea is to ask users what amount they want to tip another user. However I want to take 5% of that amount and send it to another address (as comission for site operator)
I know the user would have to confirm two transactions but does metamask or web3 have a way to do bulk transactions or one transaction that is dependent on the other?
If a user wants to tip $1 then 95 cents would go to recipient and 5 cents would go site operator.
I’d want to make sure they have to approve both transactions for them to go through (ie: stopping them from not sending the commission transaction)
Is this possible with just standard web3 transactions or would I need a smart contract that handles the commission transaction and pays the rest to the intended recipient?