Empty Accounts

Solana API endpoint for fetching empty Token-2022 and SPL token accounts for a wallet. Returns results to identify accounts eligible for rent cleanup.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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.

Path Params
string
required

The Solana wallet address to query.

Query Params
int32 | null
≥ 0

Maximum number of empty accounts to return. Defaults to 1000.

int32 | null
≥ 0

Page number to return (zero-indexed). Defaults to 0.

string | null

Sort ascending by 'tokenAccountAddress', 'mintAddress', 'name', 'symbol', 'decimals', or 'rentUsd'. If omitted, no sorting is applied. Only one of sortByAsc or sortByDesc can be used.

string | null

Sort descending by 'tokenAccountAddress', 'mintAddress', 'name', 'symbol', 'decimals', or 'rentUsd'. If omitted, no sorting is applied. Only one of sortByAsc or sortByDesc can be used.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json