Rewards
Reward XP
Trigger XP in your application when a user completes a specific action, such as registering, completing a task, watching a video or posting a comment. This is endpoint returns an unsigned transaction, which can now be signed in your application using your private key held in your local environment variables. Once signed, you can broadcast it using the Execute Transaction endpoint; or if you prefer to wait for confirmation using the Execute Transaction and Wait endpoint.
POST
/
reward
/
XP
Authorizations
X-API-KEY
string
headerrequiredBody
application/json
chain
string
requiredBlockchain network to use
Required string length:
1 - 255
action_id
string
requiredAction Id
Required string length:
1 - 32
receiver
string
requiredEthereum address of the receiver
app_id
string
requiredEthereum address of the application
amount
number
requiredAmount of tokens to reward
Required range:
x > 0
Response
200 - application/json
status
enum<string>
requiredSuccess response status
Available options:
success
unsignedTransaction
any | null
Unsigned transaction object for the user to sign