Transactions
Build a seamless web3 UX by covering users' gas fees through meta-transactions
Background
In-protocol meta transactions allowing for third-party account to initiate and pay transaction fees on behalf of the account. https://github.com/near/NEPs/pull/366
Another hurdle for new users is that they need to pay gas fees to interact with apps. To simplify the experience the platform can cover all gas fees with Meta Transaction. Currently, all on-chain interactions in East are covered. All transactions are signed and will be sent by the users' account and the platform just merely paid for gas fees, don't worry!
How it works
Create an on-chain function calls and wrap them with signedDelegate from @near-js/transactions
Send the signed transaction to a meta tx's relayer
This is best explained by the code below. Do not use the code below for your project, it's only serves to explain NEAR's meta-transactions.
Code Sample
Last updated