Skip to main content
POST
https://starknet.api.avnu.fi
/
staking
/
v3
/
pools
/
{poolAddress}
/
members
/
{userAddress}
/
claim-rewards
curl -X POST "https://starknet.api.avnu.fi/staking/v3/pools/0x123abc/members/0x0456def/claim-rewards" \
  -H "Content-Type: application/json" \
  -d '{
    "userAddress": "0x0456def...",
    "restake": false
  }'
{
  "chainId": "0x534e5f4d41494e",
  "calls": [
    {
      "contractAddress": "0x123abc",
      "entrypoint": "claim_rewards",
      "calldata": []
    }
  ]
}

Overview

Generates transaction calls to claim accrued staking rewards from a pool. Rewards can be claimed anytime with no minimum threshold.

Path Parameters

poolAddress
string
required
Pool contract address
userAddress
string
required
User’s wallet address

Request

userAddress
string
required
User’s wallet address
restake
boolean
required
If true, rewards are automatically restaked

Response

chainId
string
required
Network identifier
calls
array
required
Transaction calls to execute
curl -X POST "https://starknet.api.avnu.fi/staking/v3/pools/0x123abc/members/0x0456def/claim-rewards" \
  -H "Content-Type: application/json" \
  -d '{
    "userAddress": "0x0456def...",
    "restake": false
  }'
{
  "chainId": "0x534e5f4d41494e",
  "calls": [
    {
      "contractAddress": "0x123abc",
      "entrypoint": "claim_rewards",
      "calldata": []
    }
  ]
}