📭NFT Owners

Learn how to use Airstack to get token-bound (ERC6551) accounts by the owner of NFT that owns the accounts and vice versa.

Get Token Bound Accounts By NFT Owner Address

query MyQuery($owner: [Identity!]) {
  TokenBalances(
    input: {filter: {owner: {_in: $owner}}, blockchain: ethereum, limit: 200}
  ) {
    TokenBalance {
      tokenNfts {
        erc6551Accounts {
          address {
            addresses
          }
        }
      }
    }
  }
}

Get The Owner Of NFT That Owns A Given Token Bound Accounts Address

query MyQuery($address: [Identity!]) {
  Accounts(input: {filter: {address: {_in: $address}}, blockchain: ethereum}) {
    Account {
      nft {
        tokenBalances {
          owner {
            addresses
          }
        }
      }
    }
  }
}

Last updated

#300: add-user-details

Change request updated