Our API exposes different endpoints so you can create transactions to reward your users:

  • Trigger XP: Creates a transaction that mints an application XP token to a receiver address. This transaction needs to be signed by the application owner.

  • Trigger Reward Badge: Creates a transaction that mints an NFT token associated with an application to a receiver address. This transaction needs to be signed by the application owner.

The response from all these endpoints is an unsigned transaction. Once you sign it using your private key you can use the execute endpoint to broadcast it to the blockchain. In case you need to wait for the result of the execution you can use our execute-and-wait endpoint.

JSON Response
{
  "status": "SUCCESS",
  "unsignedTransaction": {
    "to": "0x9716fb655f2a72b1fc1b4db02b8ad20b6747442a",
    "data": "0x609512c9000000000000000000000000ff88bc0ab7226158cf0fe548a0fefc6f2f8cd9a3000000000000000000000000a0ee7a142d267c1f36714e4a8f75612f20a797200000000000000000000000000000000000000000000000000de0b6b3a76400006f746865725f6a756d7000000000000000000000000000000000000000000000414354494f4e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000",
    "maxPriorityFeePerGas": "3000000000",
    "maxFeePerGas": "5000000000",
    "gasLimit": "80317",
    "nonce": 84,
    "chainId": 31337,
    "type": 2
  }
}