#300: add-user-details
Change request updated 1 year ago
Learn how to use Airstack to get all holders of NFT or POAP that has XMTP.
Last updated 1 year ago
Was this helpful?
Get the NFT holders that have XMTP using the API and provide an NFT contract address for the $tokenAddress input.
$tokenAddress
query MyQuery($tokenAddress: Address!) { TokenBalances( input: {filter: {tokenAddress: {_eq: $tokenAddress}}, blockchain: ethereum} ) { TokenBalance { owner { xmtp { isXMTPEnabled } } } } }
{ "tokenAddress": "0xc0f95066899efd7c0540b9474f81355a83e6f578" // NFT collection address }
{ "data": { "TokenBalances": { "TokenBalance": [ { "owner": { "xmtp": [ { "isXMTPEnabled": true } ] } }, { "owner": { "xmtp": [] } } ] } } }
Get the POAP holders that have XMTP using the API and provide an POAP event ID for the $eventId input.
$eventId
query POAPEventHoldersWithXMTP($eventId: String!) { Poaps(input: {filter: {eventId: {_eq: $eventId}}, blockchain: ALL}) { Poap { owner { addresses xmtp { isXMTPEnabled } } } } }
{ "eventId": "141910" // POAP event ID }
{ "data": { "Poaps": { "Poap": [ { "owner": { "addresses": [ "0xda85048c977134b09fc05cd3d1abd3a63e8edf4d" ], "xmtp": [] } }, { "owner": { "addresses": [ "0x546457bbddf5e09929399768ab5a9d588cb0334d" ], "xmtp": [ { "isXMTPEnabled": true } ] } } ] } } }
TokenBalances