Learn how to use Airstack to get token-bound (ERC6551) accounts by the owner of NFT that owns the accounts and vice versa.
Airstack provides easy-to-use APIs that index both deployed and non-deployed (optimistic) ERC6551 accounts across Ethereum and Base to enrich ERC6551 dapps with on-chain and off-chain data.
For non-deployed (optimistic) ERC6551 accounts, it will be available in the tokenNfts nested queries and the value will be calculated through a hashing function that depends on 3 input variables:
Variables
Default Value
Description
registry
0x000000006551c19487814612e58FE06813775758
The registry address of the ERC6551 account. This can be used to indicate the different versions of ERC6551 accounts.
This defaults to registry v.0.3.1.
implementation
0x55266d75D1a14E4572138116aF39863Ed6596E7F
The implementation address of ERC6551 account.
Defaulting implementation to the official standard ERC6551 implementation address.
salt
0
The ERC6551 account's salt.
Table Of Contents
In this guide you will learn how to use Airstack to:
Airstack provides an AI solution for you to build GraphQL queries to fulfill your use case easily. You can find the AI prompt of each query in the demo's caption or title for yourself to try.
Get Token Bound Accounts By NFT Owner Address
You can fetch all the token bound accounts owned by a given address owner:
For non-deployed (optimistic) TBAs, it can be checked through some of the fields' value: