Instant Rewardz API is an advanced feature of DripDropz that allows anyone to programmatically issue token reward via a simple rest API.
You can use this to gamify your existing product or services. For example; give users token when they delegate to your stake pool, win competitions or games etc...
The use cases for this feature is virtually unlimited.
How it works?
- • Create a token bucket for any of the tokens we're already distributing on our platform
- • Top up your newly created bucket with those tokens
- • Create api key & configure your security settings
- • Distribute the token to the user via rest api call, when they perform a valuable action in your products or services
- • Each api call consumes 5 api credit; and in a single api call you can batch reward up to 100 cardano addresses at a time
- • The api credits do not expire, so you can use them at any time you want
- • The api credits are only consumed for valid api calls
One api credit costs 1 $DRIP tokens.
API Credit Costs
| Request Type |
API Credit Cost |
| CreateInstantRewards |
5 |
| GetPoolDelegations |
500 |
Example REST API call in cURL
curl --location 'https://www.dripdropz.io/api/integration/v1/instant-reward/create' \
--header 'X-App-Id: your_app_id_here' \
--header 'X-Access-Token: your_access_token_here' \
--header 'Content-Type: application/json' \
--data '{
"rewards": [
{
"address": "addrqqk3u9geuu4zkl82chc5l5t3cwc6x38x7exqvel5ha3zspr6jeraypygwzs8ymmcvgvx8cphjlwp0w2xguarthk5ta6sszx960",
"amount": 2000000,
"reason": "For completing our survey",
"startDate": 1780462009,
"endDate": 1780465477
}
]
}'
Login to Use Instant Rewardz