newworld
(newworld)
1
Hi there!
when I usee the API to see my delegators I only see 10 of them. How can i see all? It says there are 27 delegators:
curl -s POST -k ‘https://mainnet-gateway.radixdlt.com/validator/stakes’ -H ‘Content-Type: application/json’ -d ’
{
“network_identifier”: {
“network”: “mainnet”
},
“validator_identifier”: {
“address”: “<MY_VALIDATOR_ID>”
}
}’ | jq
2 Likes
RadUp.io
(Ed & James)
2
You need to repeat the same API call adding “cursor” to the request with the “next_cursor” from the previous response.
Annoyingly there’s no single API call which will pull all data in one go.
2 Likes
newworld
(newworld)
3
Oh okay thanks for the hint! Can you tell me exactly where i have to put the new “cursor” in this exmaple?
curl -s POST -k ‘https://mainnet-gateway.radixdlt.com/validator/stakes’ -H ‘Content-Type: application/json’ \ -d ’
{
“network_identifier”: {
“network”: “mainnet”
},
“validator_identifier”: {
“address”: “<VALIDATOR_ID>”
}
}’ | jq
1 Like
RadUp.io
(Ed & James)
4
Try this:
Let me know if that works ok for you.
4 Likes
newworld
(newworld)
5
works fine thank you for your help!
2 Likes