🗃ī¸NFT & POAP Holders

Learn how to use Airstack to get all holders of NFT or POAP that has XMTP.

NFT Holders

Get the NFT holders that have XMTP using the TokenBalances API and provide an NFT contract address for the $tokenAddress input.

query MyQuery($tokenAddress: Address!) {
  TokenBalances(
    input: {filter: {tokenAddress: {_eq: $tokenAddress}}, blockchain: ethereum}
  ) {
    TokenBalance {
      owner {
        xmtp {
          isXMTPEnabled
        }
      }
    }
  }
}

POAP Holders

Get the POAP holders that have XMTP using the Poaps API and provide an POAP event ID for the $eventId input.

query POAPEventHoldersWithXMTP($eventId: String!) {
  Poaps(input: {filter: {eventId: {_eq: $eventId}}, blockchain: ALL}) {
    Poap {
      owner {
        addresses
        xmtp {
          isXMTPEnabled
        }
      }
    }
  }
}

Last updated

#300: add-user-details

Change request updated