Scan a wallet: everything it can close or burn, and what each returns
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`.
/v1/wallets/{address}/assetsEvery 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.
Path Parameters
A base58 Solana address
^[1-9A-HJ-NP-Za-km-z]{32,44}$Response Body
application/problem+json
application/problem+json
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"{ "wallet": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "scannedAt": "2026-10-21T12:00:00.000Z", "complete": true, "warnings": [ { "source": "token_accounts", "code": "string", "message": "string" } ], "assets": [ { "id": "string", "kind": "empty_account", "program": "spl-token", "mint": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "account": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "amount": "1000000", "uiAmount": "string", "decimals": 0, "isNative": true, "frozen": true, "lamports": "2039280", "rentExemptMinimumLamports": "2039280", "excessLamports": "2039280", "excessNetLamports": "2039280", "excessReason": "current_rate", "closeAuthority": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "nftId": "string", "metadata": { "name": "Acme", "symbol": "string", "imageUrl": "https://example.com", "collection": { "address": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "name": "Acme" } }, "priceUsd": 0, "valueUsd": 0, "actions": [ { "action": "close", "reclaimLamports": "2039280", "fees": [ { "kind": "fee", "code": "token_account_closure", "rate": null, "baseLamports": "2039280", "lamports": "2039280", "recipient": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "recipientKind": "platform" } ], "feeLamports": "2039280", "netLamports": "2039280", "destroysAssets": true, "depositLamports": "2039280", "strayLamports": "2039280", "tier": 0, "irreversible": true } ], "defaultAction": {}, "blockedReason": "frozen", "family": "staking", "tier": 0, "staking": { "state": "initialized", "withdrawer": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "staker": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "voter": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "delegatedLamports": "2039280", "coolingLamports": "2039280", "rentLamports": "2039280", "activationEpoch": 0, "deactivationEpoch": 0, "lockup": { "until": "2026-10-21T12:00:00.000Z", "untilEpoch": 0, "custodian": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV" }, "mergeInto": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "node": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "lastCreditEpoch": 0, "delegations": 0 }, "inUse": [ "items_left" ], "authority": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "leftover": { "itemsAvailable": "2039280", "itemsRedeemed": "2039280", "collection": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "candyGuard": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "capacity": "2039280", "minted": "2039280", "delegate": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "role": "string", "auctionHouse": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "associatedCount": 0 }, "protection": { "protected": true, "family": "amm_lp", "platform": { "slug": "raydium-cpmm", "name": "Acme" }, "holds": "pool_share", "valueUsd": 0, "valueLamports": "2039280", "valueBasis": "underlying", "redeemUrl": "https://example.com" }, "preselected": true, "developer": { "upload": "deploy_buffer", "programId": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "programData": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "lastDeploySlot": 0, "dataLength": 0, "idl": { "assetId": "string", "lamports": "2039280" }, "metadataAccounts": 0, "lockedLamports": "2039280", "lookupTable": { "status": "active", "addresses": 0, "deactivationSlot": 0, "readyInSlots": 0 }, "lastActivityAt": "2026-10-21T12:00:00.000Z" }, "label": "string", "market": "AjvbmQHeBVSXXVAcUEXHWpDb7qyCAnpgVJUHaySBBYsV", "positions": 0, "lastUsedAt": "2026-10-21T12:00:00.000Z", "blockedDetail": { "message": "string", "fix": "string" } } ], "totals": { "assetCount": 0, "reclaimableLamports": "2039280", "safeSetLamports": "2039280", "safeSetStrayLamports": "2039280", "valueUsd": 0 }, "feeScheduleVersion": "string", "rentEpoch": 0}Stream assets and USD values as discovery resolves them GET
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.
Check what closing a program would lock or break GET
For a `program` the wallet can close (its upgrade authority): the accounts it owns, which freeze forever when it closes; value its PDAs hold under other programs (token balances, SOL, stake, an upgrade authority), locked forever too; and successful use by others in the last 90 days, whose apps would break. Programs are never blocked, only warned about (AERO-2775, Kelvin's Q4 C): show every warning before the person turns the program on. Read from chain and kept for up to 10 minutes; the same scan rate limit applies as the scan.