Credit
Profile
Leaderboard
Webhook
Webhook Secret
Rewards
Reward Badge
Trigger Reward Badge
POST
/
reward
/
badge
curl --request POST \
--url https://api.openformat.tech/v1/reward/badge \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"chain": "arbitrum-sepolia",
"action_id": "dragon_slayed",
"receiver": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
"app_id": "0x9716fb655f2a72b1fc1b4db02b8ad20b6747442a",
"amount": 123,
"badge_name": "Valiant warrior",
"base_uri": "ipfs://abc...",
"badge_id": "0xd1f09c70f6f2838a3ab6209c1465af68594667ec"
}'
{
"status": "success",
"unsignedTransaction": {
"to": "0x014b680bed2433b1861239cf812dbe660fe339f2",
"data": "0x609512c90000000000000000000000009574e9ba92cb0966c9d2ff1a9ab9e11949b9b873000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000de0b6b3a7640000647261676f6e5f736c6179656400000000000000000000000000000000000000414354494f4e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000",
"maxPriorityFeePerGas": "30000000000",
"maxFeePerGas": "30000000015",
"gasLimit": "95935",
"nonce": 2484,
"chainId": 80001,
"type": 2
}
}
{
"status": "success",
"unsignedTransaction": {
"to": "0x014b680bed2433b1861239cf812dbe660fe339f2",
"data": "0x609512c90000000000000000000000009574e9ba92cb0966c9d2ff1a9ab9e11949b9b873000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000de0b6b3a7640000647261676f6e5f736c6179656400000000000000000000000000000000000000414354494f4e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000",
"maxPriorityFeePerGas": "30000000000",
"maxFeePerGas": "30000000015",
"gasLimit": "95935",
"nonce": 2484,
"chainId": 80001,
"type": 2
}
}
Authorizations
Body
application/json
Response
200
application/json
Rewards Badge
The response is of type object
.
curl --request POST \
--url https://api.openformat.tech/v1/reward/badge \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"chain": "arbitrum-sepolia",
"action_id": "dragon_slayed",
"receiver": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
"app_id": "0x9716fb655f2a72b1fc1b4db02b8ad20b6747442a",
"amount": 123,
"badge_name": "Valiant warrior",
"base_uri": "ipfs://abc...",
"badge_id": "0xd1f09c70f6f2838a3ab6209c1465af68594667ec"
}'
{
"status": "success",
"unsignedTransaction": {
"to": "0x014b680bed2433b1861239cf812dbe660fe339f2",
"data": "0x609512c90000000000000000000000009574e9ba92cb0966c9d2ff1a9ab9e11949b9b873000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000de0b6b3a7640000647261676f6e5f736c6179656400000000000000000000000000000000000000414354494f4e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000",
"maxPriorityFeePerGas": "30000000000",
"maxFeePerGas": "30000000015",
"gasLimit": "95935",
"nonce": 2484,
"chainId": 80001,
"type": 2
}
}
Assistant
Responses are generated using AI and may contain mistakes.