Query to fetch tokens by account issues #537
-
query GetAccountNfts($address: String) {
current_token_ownerships_v2(
where: {owner_address: {_eq: $address}, amount: {_gt: "0"}}
) {
current_token_data {
collection_id
largest_property_version_v1
current_collection {
collection_id
collection_name
description
creator_address
uri
__typename
}
description
token_name
token_data_id
token_standard
token_uri
__typename
}
owner_address
amount
__typename
}
} This query fetches tokens by account, but cannot fetch listed tokens. Which operating system are you using?Windows Which SDK or tool are you using? (if any)TypeScript SDK |
Beta Was this translation helpful? Give feedback.
Answered by
0xbrw
Nov 21, 2024
Replies: 1 comment
-
Once your tokens are listed on a marketplace, the ability to view them depends on the marketplace’s functionality. If you need to query token balances, you can use the interactive indexer in our docs: Fungible Asset Balances. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
0xbrw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Once your tokens are listed on a marketplace, the ability to view them depends on the marketplace’s functionality.
If you need to query token balances, you can use the interactive indexer in our docs: Fungible Asset Balances.