GraphQL queries
Every top-level field on the Query type of the asset-indexer GraphQL endpoint. The endpoint is read-only — no mutations or subscriptions are exposed.
Fields
node
Returns: Node
Arguments:
| Arg | Type | Default | Description |
|---|---|---|---|
id | ID! | — | The ID of the type to get |
account
Returns: Account
Arguments:
| Arg | Type | Default | Description |
|---|---|---|---|
address | Address! | — | The address of the account |
nft
Returns: NFT
Arguments:
| Arg | Type | Default | Description |
|---|---|---|---|
chainLocation | BlockchainLocationInput | — | |
tokenId | String | — | NFT Token ID |
nfts
Returns: NFTConnection
Arguments:
| Arg | Type | Default | Description |
|---|---|---|---|
addresses | [Address]! | — | |
chainLocations | [BlockchainLocationInput] | — | List of Collections to query assets for |
first | Int | — | |
after | String | — |
nftsByTokenIds
Returns: [NFT]
Arguments:
| Arg | Type | Default | Description |
|---|---|---|---|
nfts | [NFTInput] | — |
genericToken
Returns: GenericToken
Arguments:
| Arg | Type | Default | Description |
|---|---|---|---|
chainLocation | BlockchainLocationInput | — |
genericTokenBalance
Returns: GenericTokenBalance
Arguments:
| Arg | Type | Default | Description |
|---|---|---|---|
chainLocation | BlockchainLocationInput | — | |
address | Address | — |
genericTokenBalances
Returns: GenericTokenBalanceConnection
Arguments:
| Arg | Type | Default | Description |
|---|---|---|---|
chainLocations | [BlockchainLocationInput]! | — | |
addresses | [Address]! | — |