Burn & Claim’s new API is in preview: these pages describe it as it will be at launch.
Burn & Claim Docs

Stream assets and USD values as discovery resolves them

Server-sent events whose data is an AssetScanEvent JSON object. scan.started identifies this scan; asset upserts by id, including later USD prices and action enrichment; warning reports a failed source; scan.done supplies final totals and completeness. A problem terminates a failed scan. No resume cursor or automatic reconnect: a new request starts a fresh scan. The same scan rate limit applies as the JSON route. No cache or proxy buffering; comments keep the stream alive. A program, sysvar or system address is refused with `wallet_too_large` before anything is read, and so is a wallet with more than 5,000 accounts of one kind (token accounts, DAS assets, compressed tokens or stake accounts): it is refused whole, never scanned in part. A wallet of more than 300 accounts is refused with `scan_busy` (503, with Retry-After) when the server is already scanning as many large wallets as it can; try again after `retryAfter` seconds. A scan ends within 40 seconds. An address refused before reading gets the problem instead of a stream; a wallet found too large mid-scan, one refused as `scan_busy` once its size is known, or a scan past its time, ends the stream with a `problem` event.

GET/v1/wallets/{address}/assets/stream

Server-sent events whose data is an AssetScanEvent JSON object. scan.started identifies this scan; asset upserts by id, including later USD prices and action enrichment; warning reports a failed source; scan.done supplies final totals and completeness. A problem terminates a failed scan. No resume cursor or automatic reconnect: a new request starts a fresh scan. The same scan rate limit applies as the JSON route. No cache or proxy buffering; comments keep the stream alive. A program, sysvar or system address is refused with wallet_too_large before anything is read, and so is a wallet with more than 5,000 accounts of one kind (token accounts, DAS assets, compressed tokens or stake accounts): it is refused whole, never scanned in part. A wallet of more than 300 accounts is refused with scan_busy (503, with Retry-After) when the server is already scanning as many large wallets as it can; try again after retryAfter seconds. A scan ends within 40 seconds. An address refused before reading gets the problem instead of a stream; a wallet found too large mid-scan, one refused as scan_busy once its size is known, or a scan past its time, ends the stream with a problem event.

Path Parameters

address*string

A base58 Solana address

Match^[1-9A-HJ-NP-Za-km-z]{32,44}$

Response Body

text/event-stream

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/wallets/string/assets/stream"
{  "type": "scan.started",  "wallet": "string",  "scannedAt": "2019-08-24T14:15:22Z",  "feeScheduleVersion": "string",  "rentEpoch": 0}