## DAS API

*Digital Asset Standard, JSON-RPC over HTTPS*

Ten DAS methods on the [RPC](https://carbium.sh/docs/rpc.md) endpoint, on any key holding DAS (new keys do; DAS alone is enough), from our own index of finalized state: NFTs, programmable NFTs, Core assets and collections, editions, fungible and Token-2022 tokens, token accounts. 1 credit per served call, batched or not; errors free.

### quick start

```
# DAS: one asset by id
curl https://services.carbium.sh \
  -H 'content-type: application/json' -H 'x-api-key: <YOUR_KEY>' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getAsset","params":{"id":"JAYLzPNDmypGtp4h2K9NWMCHbxv8EhP3Br6czUGUtUFf"}}'
# -> {"jsonrpc":"2.0","result":{"interface":"V1_NFT","id":"JAYLzPNDmypGtp4h2K9NWMCHbxv8EhP3Br6czUGUtUFf",
#     "content":{"$schema":"https://schema.metaplex.com/nft1.0.json","files":[],
#       "json_uri":"https://arweave.net/x--evWfL-N50WBzkmajEP2PUmwZTwpQjtqMkoDmG6Hw","links":{},
#       "metadata":{"name":"Scratch-off NFT 2nd ed. #164","symbol":"SC","token_standard":"NonFungible"}},
#     "royalty":{"basis_points":1000,...},"ownership":{"owner":"1BWutmTvYPwDtmw9abTkS4Ssr8no61spGAvW1X6NDix",...},
#     "burnt":false,"last_indexed_slot":...},"id":1}

# a wallet's assets, page by page
curl https://services.carbium.sh \
  -H 'content-type: application/json' -H 'x-api-key: <YOUR_KEY>' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getAssetsByOwner","params":{
        "ownerAddress":"1BWutmTvYPwDtmw9abTkS4Ssr8no61spGAvW1X6NDix","limit":100,"page":1,
        "displayOptions":{"showNativeBalance":true}}}'
# -> {"jsonrpc":"2.0","result":{"items":[...],"last_indexed_slot":...,"limit":100,"page":1,"total":100,
#     "nativeBalance":{"lamports":...}},"id":1}
# total counts this page; ask the next page until one holds fewer than limit
```

### limits

| limit | FREE | DEV | BUSINESS | PRO |
|---|---|---|---|---|
| calls per second  (per account) | 3 | 15 | 75 | 150 |
| calls in flight per key  (a batch is one) | 1 | 2 | 4 | 8 |

> Burst: 150 cells, every plan. 1 cell per call, plus 1 per 4 KB of body past the first. Up to 100 DAS calls per batch. Over the rate: waits if its turn comes within 1 s; no place in flight: waits up to 3 s; then 429. A key's das cap (dashboard: POLICY, then ADVANCED; API: method_class das) holds all ten methods together to its own calls a second; past it, 429.

### methods

| method | answers | key params |
|---|---|---|
| getAsset | one asset; burnt: true if burnt with a metadata account | id, or ["\<id>"] |
| getAssets, getAssetBatch | up to 1,000 in request order; null for unknown ids | ids |
| getAssetsByOwner | a wallet's assets; showFungible adds tokens, balances | ownerAddress |
| getAssetsByGroup | a collection's assets | groupKey "collection", groupValue |
| getAssetsByCreator | a creator's assets | creatorAddress, onlyVerified |
| getAssetsByAuthority | an update authority's assets | authorityAddress |
| searchAssets | assets matching all filters | ownerAddress, creatorAddress, authorityAddress, grouping, interface, tokenType, frozen, delegate, burnt |
| getNftEditions | a master edition's prints by number; supply, max supply | mint, limit, page |
| getTokenAccounts | token accounts with amount, delegate, frozen | owner, mint or both; showZeroBalance |
| **paging, the getAssetsBy* lists and searchAssets** |  |  |
| limit | items per page | 1,000 max and default |
| page | from 1 | page × limit up to 500,000 |
| cursor, before, after | keyset, any depth | last item's id; not with page |
| sortBy | {sortBy, sortDirection} | id (default, desc); created, updated, recent_action and none need page |
| displayOptions | alias: options | showFungible, showZeroBalance, showGrandTotal, showNativeBalance, showCollectionMetadata, showUnverifiedCollections |
| result | total: items on this page | total, limit, page or cursor, items, last_indexed_slot |

> `searchAssets` without owner, creator, authority or grouping: `page` for the first 10,000 items, then `cursor`; `showGrandTotal`, `burnt: true`, `interface` `MplCoreGroup`, `updated` and `recent_action` sorts need one of the four. `tokenType` needs `ownerAddress`; `delegate` an owner or grouping. `getNftEditions`: `page` only. `getTokenAccounts` sorts by address; `cursor` is the last account's address.

> Helius DAS API clients need only a new URL: same methods, field names, answer shapes and error messages. Metaplex Umi DAS plugin: `dasApi({ heliusCompatibility: true })`. `groupKey` ignored; `groupValue` names the collection.

> Off-chain JSON (`content.json_uri`) is not fetched: `content.files` and `content.links` empty; no description, attributes or image, so fetch the URI for them. No token prices. `nativeBalance`: lamports. `searchAssets` refuses unapplied filters by name, such as `name`, `jsonUri`, royalty, supply.

### errors

| code | message | what to do |
|---|---|---|
| -32602 | Pagination Error. Limit should not be greater than 1000. / unknown field … / Pubkey Validation Err: … is invalid | fix the params; no retry |
| -32602 | this index does not serve the `name` filter | drop the filter; apply it client-side |
| -32602 | this method is not batchable (HTTP 400) | batch DAS only with DAS |
| -32000 | Database Error: RecordNotFound Error: Asset Not Found | no such asset; no immediate retry |
| -32012 | token accounts refused: … / showFungible refused: … | over 10,000 token accounts: name owner and mint, or drop showFungible |
| -32021 | index is behind the chain, retry | retry in a few seconds |
| -32022 | index is repairing a gap, retry later | retry later; no loop |
| -32023 | index is not built yet | retry later |
| -32024, -32026 | token accounts refused: the hot store deferred the read; retry / index is busy, retry / hot store is busy, retry | retry with jittered backoff |
| -32603 | the index could not finish this read in time / Internal error | narrow it (smaller limit; searchAssets: owner, creator, authority or grouping), a few backoff retries |
| -32011 | das upstream timed out / unreachable / response too large (HTTP 502, 503, 504; 200 for one element of a batch) | retry with backoff, in a batch that element; past 8 MiB, lower limit |
| -32005 | rate limit exceeded / DAS lane capacity exceeded: das_lane (HTTP 429) | wait retry-after-ms, then retry |
| -32001 | api key is not enabled for das (HTTP 401, SCOPE_DAS_MISSING) | tick DAS on the key (SCOPE); a batch holding a DAS call is refused whole |
| -32601 | method not found | unserved or misspelt method; no retry |

> Compressed NFTs are not served: `getAssetProof`, `getAssetProofs`, `getAssetProofBatch`, `getAssetSignatures`, `getSignaturesForAsset` answer `-32601`, final.

### tested against the reference DAS API on 2026-11-21

| check | how | result |
|---|---|---|
| on-chain fields | 1,418 calls, ten methods, every served kind, value by value; off-chain JSON and prices left out | 10,382 of 10,386 compared assets (99.96%) match on every on-chain field |
| collections | three Core collections, whole by getAssetsByGroup, by id via getAssetBatch | all live assets, none extra |
| token holders | a token's accounts by cursor to the end; one-sided ones read on chain | all live holders |
| request forms | reference docs, Metaplex Umi DAS plugin 2.1.1 and Helius SDK 3.5.0 bodies; 21 bad inputs; a batch | status, error code, message, shape match |
| freshness | index slot vs finalized slot | within 16 slots on 99.99% of 101,252 readings |

> DAS is its own plane on the dashboard's Usage page (the DAS chip under PLANE) and on the [benchmark](https://carbium.sh/benchmark.html) (its DAS tile).

### methods

#### getAsset

1 credit · FREE 3/s, DEV 15/s, BUSINESS 75/s, PRO 150/s · batch

| param | type |   |   |
|---|---|---|---|
| id | pubkey | req |  |
| options | {showCollectionMetadata?, showUnverifiedCollections?} | opt |  |

```
{"jsonrpc":"2.0","id":1,"method":"getAsset","params":{"id":"JAYLzPNDmypGtp4h2K9NWMCHbxv8EhP3Br6czUGUtUFf"}}
```

**answer**: the DAS result, relayed as is

#### getAssets

1 credit · FREE 3/s, DEV 15/s, BUSINESS 75/s, PRO 150/s · batch

| param | type |   |   |
|---|---|---|---|
| ids | pubkey[] | req |  |

```
{"jsonrpc":"2.0","id":1,"method":"getAssets","params":{"ids":["JEBKNi5Qxr2u4k6HrrvzGTPXRrHNRKuSw2Swomni8d8L","J8VnjcyxEe2Bnvs3nZQ8taqTDz6ebeuq3vY13cgvnTHU"]}}
```

**answer**: the DAS result, relayed as is

#### getAssetBatch

1 credit · FREE 3/s, DEV 15/s, BUSINESS 75/s, PRO 150/s · batch

| param | type |   |   |
|---|---|---|---|
| ids | pubkey[] | req |  |

```
{"jsonrpc":"2.0","id":1,"method":"getAssetBatch","params":{"ids":["J7KXUeM5hDcbB28Xg639jyCTW19PExRYz5uVVqSfVHzZ","3uSCP1NoHAdbHvq3Q5G7QYc6RSRGMxN2QN9LLrCQ9fn2"]}}
```

**answer**: the DAS result, relayed as is

#### getAssetsByOwner

1 credit · FREE 3/s, DEV 15/s, BUSINESS 75/s, PRO 150/s · batch

| param | type |   |   |
|---|---|---|---|
| ownerAddress | pubkey | req |  |
| limit | number | opt |  |
| page | number | opt |  |
| sortBy | {sortBy, sortDirection} | opt |  |
| options.showNativeBalance | bool | opt | adds nativeBalance: {lamports} |

```
{"jsonrpc":"2.0","id":1,"method":"getAssetsByOwner","params":{"ownerAddress":"DFFiJgCASVfPEQgRkrjkYAPGtFyo2pygx9aGp5XpMT9H","limit":50,"page":1,"sortBy":{"sortBy":"id","sortDirection":"asc"}}}
```

**answer**: the DAS result; nativeBalance: {lamports} last when asked

#### getAssetsByGroup

1 credit · FREE 3/s, DEV 15/s, BUSINESS 75/s, PRO 150/s · batch

| param | type |   |   |
|---|---|---|---|
| groupKey | string | req | not read; groupValue is a collection |
| groupValue | pubkey | req |  |
| limit | number | opt |  |
| page | number | opt |  |
| sortBy | {sortBy, sortDirection} | opt |  |

```
{"jsonrpc":"2.0","id":1,"method":"getAssetsByGroup","params":{"groupKey":"collection","groupValue":"8F1bswRfPyfkxserkVpVPxfHYpFoqed9JfjpWukassSB","limit":50,"page":1,"sortBy":{"sortBy":"id","sortDirection":"asc"}}}
```

**answer**: the DAS result, relayed as is

#### getAssetsByCreator

1 credit · FREE 3/s, DEV 15/s, BUSINESS 75/s, PRO 150/s · batch

| param | type |   |   |
|---|---|---|---|
| creatorAddress | pubkey | req |  |
| onlyVerified | bool | opt |  |
| limit | number | opt |  |
| page | number | opt |  |
| sortBy | {sortBy, sortDirection} | opt |  |

```
{"jsonrpc":"2.0","id":1,"method":"getAssetsByCreator","params":{"creatorAddress":"3AePGRNRoTdVm23cf7eahCofM2LFrWGHLsZshPgM9djz","onlyVerified":true,"limit":50,"page":1,"sortBy":{"sortBy":"id","sortDirection":"asc"}}}
```

**answer**: the DAS result, relayed as is

#### getAssetsByAuthority

1 credit · FREE 3/s, DEV 15/s, BUSINESS 75/s, PRO 150/s · batch

| param | type |   |   |
|---|---|---|---|
| authorityAddress | pubkey | req |  |
| limit | number | opt |  |
| page | number | opt |  |
| sortBy | {sortBy, sortDirection} | opt |  |

```
{"jsonrpc":"2.0","id":1,"method":"getAssetsByAuthority","params":{"authorityAddress":"5a3KGPWD3kfNh7nRcSecAe52XaJC1GJCorPFKAF18z2M","limit":50,"page":1,"sortBy":{"sortBy":"id","sortDirection":"asc"}}}
```

**answer**: the DAS result, relayed as is

#### getNftEditions

1 credit · FREE 3/s, DEV 15/s, BUSINESS 75/s, PRO 150/s · batch

| param | type |   |   |
|---|---|---|---|
| mint | pubkey | req | the master edition mint |
| limit | number | opt |  |
| page | number | opt |  |

```
{"jsonrpc":"2.0","id":1,"method":"getNftEditions","params":{"mint":"DWcbwT6i8C1xZuqFqZroPKuwQwTdwoTawjUWsUDXjExo","limit":50,"page":1}}
```

**answer**: the DAS result, relayed as is

#### getTokenAccounts

1 credit · FREE 3/s, DEV 15/s, BUSINESS 75/s, PRO 150/s · batch

| param | type |   |   |
|---|---|---|---|
| owner | pubkey | req |  |
| limit | number | opt |  |
| page | number | opt |  |

```
{"jsonrpc":"2.0","id":1,"method":"getTokenAccounts","params":{"owner":"86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY","limit":50,"page":1}}
```

**answer**: the DAS result, relayed as is

#### searchAssets

1 credit · FREE 3/s, DEV 15/s, BUSINESS 75/s, PRO 150/s · batch

| param | type |   |   |
|---|---|---|---|
| ownerAddress | pubkey | opt |  |
| tokenType | string | opt | fungible, nonFungible, regularNft or all |
| limit | number | opt |  |
| page | number | opt |  |
| sortBy | {sortBy, sortDirection} | opt |  |
| options.showNativeBalance | bool | opt | adds nativeBalance when an owner is named |

```
{"jsonrpc":"2.0","id":1,"method":"searchAssets","params":{"limit":50,"page":1,"sortBy":{"sortBy":"id","sortDirection":"asc"},"ownerAddress":"DFFiJgCASVfPEQgRkrjkYAPGtFyo2pygx9aGp5XpMT9H","tokenType":"fungible"}}
```

**answer**: the DAS result; nativeBalance: {lamports} last when asked
