API ReferenceWallet ownership

List a wallet’s Record ownership balances

Returns positive ERC-1155 balances in token ID order, with fixed supply in integer units. The deployment selects the chain and Record ownership contract. Any nonzero wallet can be queried without a DID. An admitted journal with no matching rows at its canonical checkpoint returns an empty page. Subsequent pages must supply the first page’s streamId, asOfBlockHash and generation. A later head preserves that snapshot; a reorg or deployment change requires restarting at offset zero. Responses use Cache-Control: no-store.

GET
/v1/wallets/{address}/recordHoldings
/v1/wallets/{address}/recordHoldings

Path Parameters

address
Required
string

Nonzero wallet address. Mixed-case hexadecimal is accepted.

Pattern: "^0x[0-9a-fA-F]{40}$"

Query Parameters

offsetinteger

Canonical decimal offset. Positive offsets require all three snapshot parameters.

Default: 0Minimum: 0Maximum: 10000

limitinteger

Canonical decimal page size. Defaults to the configured API limit capped at 100.

Minimum: 1Maximum: 100

streamIdstring

Deployment identifier from the first page. Supply together with asOfBlockHash and generation.

Pattern: "^[0-9a-f]{64}$"

asOfBlockHashstring

Lowercase checkpoint block hash from the first page, paired with streamId and generation.

Pattern: "^0x[0-9a-f]{64}$"

generationinteger

Canonical decimal journal generation from the first page, paired with streamId and asOfBlockHash.

Minimum: 0Format: "int64"
curl -X GET "http://lineage-api.xny-staging.svc.cluster.local:8001/v1/wallets/string/recordHoldings?offset=0&limit=1&streamId=string&asOfBlockHash=string&generation=0"

Wallet records at one canonical checkpoint.

{
  "chainId": "string",
  "streamId": "string",
  "contractAddress": "string",
  "asOfBlock": "string",
  "asOfBlockHash": "string",
  "generation": 0,
  "finality": "string",
  "syncStatus": "string",
  "indexedAt": "2019-08-24T14:15:22Z",
  "total": 0,
  "offset": 10000,
  "limit": 1,
  "wallet": "string",
  "items": [
    {
      "recordId": "string",
      "tokenId": "string",
      "balance": "string",
      "fixedSupply": "string"
    }
  ]
}

Last updated