Skip to main content

GraphQL Samples

GraphQL examples target common indexer read models: account assets, NFT/current token ownership, Aptos Object lookups, and custom Move-contract tables/events. Indexer GraphQL is recommended for these derived queries by the Aptos API documentation.

curl -sS "$APTOS_INDEXER_GRAPHQL_URL" \
-H 'content-type: application/json' \
--data-binary @<(jq -n --arg owner "$OWNER" \
--rawfile query chains/aptos/samples/graphql/account-assets.graphql \
'{{query:$query, variables:{{owner:$owner}}}}')