WAX Kit Get Assets icon

WAX Kit Get Assets

Get NFTs for an account

WAX Kit Get Assets

AI-generated

Summary

Fetches all assets owned by a WAX account by reading the assets table of an AtomicAssets-style contract via RPC, optionally filtering by template, collection, or schema. Returns one item per input item with the account and a list of matching assets.

Inputs

  • account (required) — WAX account name whose assets are listed (used as the table scope).
  • templateId — Comma-separated template IDs. Parsed as integers; non-numeric entries are dropped. Only assets with a matching template_id are kept.
  • collection — Comma-separated collection names. Only assets in these collections are kept.
  • schema — Comma-separated schema names. Only assets with these schema names are kept.
  • code (required) — Contract account to query (defaults to atomicassets).
  • endpoint (required) — WAX RPC API endpoint URL (defaults to https://wax.greymass.com).

Output shape

One output item per input item, with json: { account, assets: [ { asset_id, template_id, collection_name, schema_name } ] }.

Filtering is done client-side after paging through the entire table (1000 rows per request, following next_key), so accounts with many assets may take multiple requests. Filters are combined with AND. Throws an error if the RPC returns no response or a response without rows. Requires the waxKitPrivateKeyApi credential, which holds a license key that is checked against a remote license service (results cached for about an hour). The node is marked hidden in the UI.

Examples

Example 1: List all assets a user holds in a specific collection

account=myaccount.wam, collection=alien.worlds, code=atomicassets, endpoint=https://wax.greymass.com

Example 2: Check whether an account owns assets from certain templates

account=myaccount.wam, templateId=12345,67890, defaults for code and endpoint

Links

Discussion