Get Daily Wallet Rewards (Aggregated)
curl --request GET \
--url https://api.anchorage-staging.com/v3/wallets/{walletId}/daily-rewards \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v3/wallets/{walletId}/daily-rewards"
headers = {"Api-Access-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Access-Key': '<api-key>'}};
fetch('https://api.anchorage-staging.com/v3/wallets/{walletId}/daily-rewards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"rewards": [
{
"amount": {
"amount": "10.45234733",
"assetType": "ETH"
},
"date": "2024-01-15",
"rewardType": "CONSENSUS_LAYER_REWARDS"
}
]
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Get Daily Wallet Rewards (Aggregated)
Permissions required: Read vault activity
Get daily aggregated rewards for a wallet over a specified date range (maximum 31 days).
GET
/
wallets
/
{walletId}
/
daily-rewards
Get Daily Wallet Rewards (Aggregated)
curl --request GET \
--url https://api.anchorage-staging.com/v3/wallets/{walletId}/daily-rewards \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v3/wallets/{walletId}/daily-rewards"
headers = {"Api-Access-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Access-Key': '<api-key>'}};
fetch('https://api.anchorage-staging.com/v3/wallets/{walletId}/daily-rewards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"rewards": [
{
"amount": {
"amount": "10.45234733",
"assetType": "ETH"
},
"date": "2024-01-15",
"rewardType": "CONSENSUS_LAYER_REWARDS"
}
]
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Authorizations
An API key associated with a security role
Path Parameters
The unique identifier of the wallet
Query Parameters
Reward types to include. Only the specified types will be returned.
Note: Do not query both an aggregate type and its component granular types in the same request to avoid double-counting.
Solana reward types.
DELEGATION_REWARDS- Standard staking delegation rewardsDELEGATION_MEV_REWARDS- MEV rewards from staking delegation
Ethereum reward types.
Aggregate types:
CONSENSUS_LAYER_REWARDS- Sum of BLOCK_PROPOSER_REWARDS + ATTESTATION_REWARDS + SYNC_COMMITTEE_REWARDSEXECUTION_LAYER_REWARDS- Execution layer rewards including transaction fees and MEV
Granular types:
BLOCK_PROPOSER_REWARDS- Block proposal rewardsATTESTATION_REWARDS- Block attestation rewardsSYNC_COMMITTEE_REWARDS- Sync committee participation rewards
Minimum array length:
1Available options:
DELEGATION_MEV_REWARDS, DELEGATION_REWARDS, CONSENSUS_LAYER_REWARDS, EXECUTION_LAYER_REWARDS, BLOCK_PROPOSER_REWARDS, ATTESTATION_REWARDS, SYNC_COMMITTEE_REWARDS Filter rewards by asset type.
Response
Success
Response containing daily rewards over a date range for a specific reward type
Array of daily reward entries, one per day in the requested range
Show child attributes
Show child attributes
Was this page helpful?