How to verify token holder eligibility in the campaign

When you create a campaign on a platform like TaskOn, you often need to set the eligibility requirements for the campaign, such as users needing to own an APE token.

Step 1: Get specified ERC20 balance by address

Here you'll need three parameters: chain, token_address and wallet_address.

Once you have obtained all parameters, you can copy the following code:

curl --request GET \
     --url '' \
     --header 'API-KEY: your-api-key' \
     --header 'accept: application/json'

Step 2: Run the script

In your terminal, you should see the following JSON response:

  "message": "success",
  "code": 0,
  "data": {
    "balance": "12986000000000000000000",
    "decimal": "18"

Step 3: Deploy your validation API

After successfully testing the previous two steps, you can now embed it into your API server and deploy a public API to start using it.

API Reference

If you want to know more details on the endpoint and optional parameters, check out: