â™Ļī¸NFTs

Learn how to use Airstack to get token-bound (ERC6551) accounts by NFTs that own the accounts and vice versa

Get Token Bound Accounts (ERC6551) By NFT Collection Address(es)

query MyQuery($tokenAddress: [Address!]) {
  Accounts(
    input: {filter: {tokenAddress: {_in: $tokenAddress}}, blockchain: ethereum, limit: 200}
  ) {
    Account {
      address {
        addresses
        domains {
          name
          isPrimary
        }
        socials {
          dappName
          profileName
        }
      }
    }
  }
}

Get Token Bound Accounts By Specific NFT

query MyQuery($tokenAddress: Address!, $tokenId: String!) {
  Accounts(
    input: {filter: {tokenAddress: {_eq: $tokenAddress}, tokenId: {_eq: $tokenId}}, blockchain: ethereum, limit: 200}
  ) {
    Account {
      address {
        addresses
        domains {
          name
          isPrimary
        }
        socials {
          dappName
          profileName
        }
      }
    }
  }
}

Get Owner NFT of a Token Bound Account

query MyQuery($erc6551Address: [Identity!]) {
  Accounts(
    input: {blockchain: ethereum, filter: {address: {_in: $erc6551Address}}}
  ) {
    Account {
      nft {
        address
        metaData {
          name
          description
          image
        }
      }
    }
  }
}

Last updated

#300: add-user-details

Change request updated