Skip to main content
In the OPENFORMAT transaction lifecycle, the app owner takes on the responsibility of paying for the gas fees when rewarding tokens and badges. This is improves the UX for the user and also allows app owners to estimate costs for running their applications.
1

Create Reward Transaction

The process begins with the creation of a reward transaction. This involves calling a Reward transaction endpoint, which returns an unsigned Ethereum transaction containing all the necessary details to reward a user.
cURL
2

Verify and Sign the Transaction

After receiving the unsigned transaction, it’s your responsibility to verify and sign it with your private key. This crucial step ensures security since we don’t access your private keys. You have the option to sign the transaction on the frontend using Viem or ethers. based on your preference.
ethers
3

Execute the Transaction

Finally, once you’ve signed the transaction, it’s ready to be sent to the network. We offer to handle this step for you, leveraging our advanced execution process that includes efficient nonce management and queue integration. This ensures a smooth and reliable transaction execution. However, you also have the option to process the transaction yourself or use any existing service you’re accustomed to.
We also provide another endpoint in case you need to wait for the result of the transaction execution.

Examples

JavaScript