Get the Historical Stake and Rewards for Multiple Delegators
API Parameters
aggregate
- Type: boolean
- Description: Set to true for the rewards to be aggregated across addresses.
- Default:
false
fromTime
- Type: int64
- Description: The Unix timestamp in seconds from which you wish to retrieve rewards.
- Required: true
- Default:
1577836800
toTime
- Type: int64
- Description: The Unix timestamp in seconds until which rewards are retrieved.
- Required: true
- Default:
1685491200
timeUnit
- Type: string
- Description: Represents how the rewards are aggregated.
- Required: true
- Enum:
epoch,daily,weekly, ormonthly
addresses
- Type: array of strings
- Description: List of addresses to retrieve rewards for.
- Required: true
- Default:
stake1u8003gtvhcunzzmy85nfnk6kafd8lks2mykfzf0n4hq4qzg9f029u,stake1u80058a9nztq6d5sudzynepf63pedvpyr3kzhlxacrcefwqf3ez2y
Example CURL Request
curl --request POST \
--url https://svc.blockdaemon.com/reporting/staking/v1/cardano/mainnet/delegator/history \
--header 'X-API-Key: ••••' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{\n
"fromTime": 1577836800,\n
"toTime": 1685491200,\n
"timeUnit": "epoch",\n
"addresses": [\n "stake1u8003gtvhcunzzmy85nfnk6kafd8lks2mykfzf0n4hq4qzg9f029u",\n "stake1u80058a9nztq6d5sudzynepf63pedvpyr3kzhlxacrcefwqf3ez2y"\n ]\n}'
Response Codes
200: Success400: Invalid request404: Resource not found
Updated 2 months ago