Skip to content

Add NFT token gating on Astar

Token gating answers one question: does this wallet currently hold at least one live token from the required collection? The owner endpoint is authoritative for current holdings, but it does not accept a collection filter, so a wallet with more than 100 NFTs must be paged until a match is found or the list ends.

Terminal window
curl -sS \
-H "Authorization: Bearer $ARADIA_API_TOKEN" \
"https://api.aradia.app/v1/owners/0x0000000000000000000000000000000000000002/nfts?limit=100"

Never trust a boolean sent by the browser. Run the ownership check in your backend, associate the checked wallet with a verified wallet session, and cache a positive result only for a short period if immediate transfer revocation matters.

Check the response coverage.status before presenting the result as exhaustive. unknown means the API is not claiming complete historical coverage.