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.
/v1/wallets/{address}/assets/streamServer-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
A base58 Solana address
^[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}A wallet’s cleanups, newest first GET
One session per cleanup round across its approvals: its status, items, totals over what landed, and its donation with the donor tier it reached and who got it. A page at a time.
Scan a wallet: everything it can close or burn, and what each returns GET
Every token account, NFT, compressed NFT and ZK-compressed token the wallet holds, with the actions available on each, what each returns and its fees. A ZK-compressed token offers `burn` and `zk_decompress`, each a fixed fee from the wallet, since it holds no rent. `complete` is false when a source failed; `warnings` says which. 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. Past that the JSON answer is `upstream_timeout`.