Skip to content

Policy Assets

GET /v1/assets/policy/:policyId

Get all assets under a specific policy ID (paginated).

Parameters:

ParameterTypeDescription
policyIdstring56-character hex policy ID

Query Parameters:

ParameterTypeDefaultDescription
limitinteger100Results per page (1-500)
offsetinteger0Number of results to skip
orderstringdescSort order: asc or desc (by total supply)

Example Request:

bash
# All IAG policy assets
curl -X GET "https://api.insight.iagon.com/v1/assets/policy/5d16cc1a177b5d9ba9cfa9793b07e60f1fb70fea1f8aef064415d114" \
  -H "Authorization: Bearer YOUR_API_KEY"

# First 5 assets
curl -X GET "https://api.insight.iagon.com/v1/assets/policy/5d16cc1a177b5d9ba9cfa9793b07e60f1fb70fea1f8aef064415d114?limit=5" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response:

Content-Type: application/json;charset=utf-8

json
{
  "success": true,
  "data": [
    {
      "asset_name": "494147",
      "asset_name_ascii": "IAG",
      "fingerprint": "asset1nzfpk7mtqc40pnzyf5daqy3csqcff6rjzqstgj",
      "total_supply": "1000000000000000",
      "mint_count": 1,
      "burn_count": 0
    }
  ],
  "pagination": {
    "limit": 100,
    "offset": 0,
    "total": 1,
    "hasMore": false
  },
  "last_updated": {
    "slot_no": 123456789,
    "block_hash": "abc123...",
    "block_time": "2024-01-15T10:30:00Z"
  }
}

Content-Type: application/json;charset=utf-8

json
{
  "success": false,
  "error": "Invalid policy ID format. Expected 56 hex characters"
}

Response Fields:

FieldTypeDescription
asset_namestringHex-encoded asset name
asset_name_asciistring | nullASCII representation if valid UTF-8
fingerprintstringCIP-14 fingerprint (asset1...)
total_supplystringCurrent circulating supply
mint_countintegerNumber of mint events
burn_countintegerNumber of burn events

Use Cases

This endpoint is useful for:

  • Discovering all NFTs in a collection (same policy ID)
  • Finding all tokens under a project's policy
  • Auditing token supply across a policy