Skip to main content
POST
cURL

Authorizations

X-API-KEY
string
header
required

Body

application/json
chain
string
required

Blockchain network to use

Required string length: 1 - 255
Example:

"arbitrum-sepolia"

action_id
string
required

Action Id

Required string length: 1 - 32
Example:

"dragon_slayed"

receiver
string
required

Ethereum addres of the receiver

Pattern: ^(0x)?[0-9a-fA-F]{40}$
Example:

"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"

app_id
string
required

Ethereum address of the application

Pattern: ^(0x)?[0-9a-fA-F]{40}$
Example:

"0x9716fb655f2a72b1fc1b4db02b8ad20b6747442a"

token_address
string
required

Ethereum address of the Credit token

Pattern: ^(0x)?[0-9a-fA-F]{40}$
Example:

"0xd1f09c70f6f2838a3ab6209c1465af68594667ec"

amount
number
required

Amount of tokens to reward

Required range: x > 0
Example:

123

mint
boolean
default:false

Whether to mint the Credit tokens instead of doing a transfer

Example:

false

Response

Rewards Credit token

success
enum<boolean>
required

Success response

Available options:
true
Example:

true

unsignedTransaction
any | null

Unsigned transaction object for the user to sign