Skip to main content
POST
/
claim-rewards
Claim fee rewards (batch)
curl --request POST \
  --url https://api.tokenlayer.network/claim-rewards \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "currencyAddress": "<string>",
  "chains": [
    "<string>"
  ]
}
'
{
  "success": true,
  "transactions": [
    {
      "to": "<string>",
      "data": "<string>",
      "value": "<string>",
      "chainSlug": "<string>",
      "chainId": "<string>",
      "chainType": "evm",
      "gasLimit": "<string>",
      "description": "<string>"
    }
  ],
  "metadata": {
    "totalChainsWithBalance": 123,
    "totalCurrenciesClaimed": 123,
    "currencyAddress": "<string>"
  }
}

Authorizations

Authorization
string
header
required

JWT token or API key

Body

application/json
currencyAddress
string
chains
string[]

Response

Successful response

success
boolean
required
transactions
object[]
required
metadata
object
required