Get snapshot holders
Issue a GET
request to the snapshot
endpoint to retrieve token holders for a snapshot.
GET https://admin-api.phosphor.xyz/v1/snapshots/{snapshot_id}/holders?output_type=PER_ADDRESS
output_type
is an optional field that has an enum value of PER_TOKEN
or PER_ADDRESS
. The default is PER_ADDRESS
.
PER_TOKEN
- ERC-721 response
- ERC-1155 response
{
"cursor": "c3RfYWJmNGMxODItOGVjZC00M2M2LWFkNDQtZjk3ZDMxMWFjZWNl",
"has_more": false,
"results": [
{
"address": "0xD068e715B67475766cBdA68Aa514589b92ff2D1c",
"quantity": 1,
"token_id": 7404
},
{
"address": "0xdd412468738CA63eA0F969948aBA3E35e344009F",
"quantity": 1,
"token_id": 7403
}
],
"total_results": 2
}
{
"cursor": "c3RfZDAyNDcyNWItMWIyZC00YzFkLTkwNzctYjdiMDU4NGMwMTli",
"has_more": false,
"results": [
{
"address": "0x3a2Ea5595098565e7362e04dA30C5ec29435731F",
"quantity": 1,
"token_id": 9
},
{
"address": "0x60311403A64E47Cb65e17c56da22694364740789",
"quantity": 4,
"token_id": 9
},
{
"address": "0x60311403A64E47Cb65e17c56da22694364740789",
"quantity": 5,
"token_id": 11
},
{
"address": "0x60311403A64E47Cb65e17c56da22694364740789",
"quantity": 5,
"token_id": 10
}
],
"total_results": 4
}
PER_ADDRESS
- ERC-721 response
- ERC-1155 response
{
"cursor": "c3RfMHhkZDQxMjQ2ODczOENBNjNlQTBGOTY5OTQ4YUJBM0UzNWUzNDQwMDlG",
"has_more": false,
"results": [
{
"address": "0xD068e715B67475766cBdA68Aa514589b92ff2D1c",
"quantity": 1
},
{
"address": "0xdd412468738CA63eA0F969948aBA3E35e344009F",
"quantity": 1
}
],
"total_results": 2
}
{
"cursor": "c3RfMHg2MDMxMTQwM0E2NEU0N0NiNjVlMTdjNTZkYTIyNjk0MzY0NzQwNzg5",
"has_more": false,
"results": [
{
"address": "0x3a2Ea5595098565e7362e04dA30C5ec29435731F",
"quantity": 1
},
{
"address": "0x60311403A64E47Cb65e17c56da22694364740789",
"quantity": 14
}
],
"total_results": 2
}