Reward Credit
Trigger a reward of a specific Credit token in your application. This is endpoint returns an unsigned transaction, which can be signed 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.
By default this operation transfers the rewarded tokens from the transaction sender account to the receiver account, this transfer is executed by the Application contract defined in app_id
parameter. That means for the reward to succeed you should had previously created an allowance for the Application to transfer the required amount of tokens; you can do this using our approve endpoint
In case you want to mint the new tokens instead of transfer them you should set the optional parameter mint
to true
Authorizations
Body
Blockchain network to use
1 - 255
Action Id
1 - 32
Ethereum addres of the receiver
Ethereum address of the application
Ethereum address of the Credit token
Amount of tokens to reward
x > 0
Whether to mint the Credit tokens instead of doing a transfer
Response
Success response
Unsigned transaction object for the user to sign