Solana API endpoint for fetching empty Token-2022 and SPL token accounts for a wallet. Returns results to identify accounts eligible for rent cleanup.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Fetch empty Token-2022 and SPL token accounts for a Solana wallet using this API endpoint. Retrieve zero-balance accounts with rent values in SOL and USD, along with token metadata and totals for reclaimable rent.
Supports pagination and sorting, making it ideal for identifying unused accounts, optimizing wallet state, and enabling efficient rent recovery through account cleanup.
Returns token accounts owned by a wallet that have a zero balance. Each result includes the mint, decimals, rent in SOL and USD, and token metadata if available. Also returns a total count of empty accounts and the total rent that could be reclaimed by closing them. A maximum of 1000 token accounts can be returned.
Use this to help users identify and close zero-balance token accounts to reclaim SOL rent.