Close Token Accounts

Solana API endpoint for closing empty Solana token accounts. Build a transaction to close Token-2022 and SPL token accounts to recover locked SOL.

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

Close empty Token-2022 and SPL token accounts to reclaim locked SOL using this API endpoint. Build transactions with support for auto-discovery or manual account selection, optional gasless execution and configurable rent fees.

The response includes detailed summaries such as total accounts closed, SOL recovered, fees charged, and transaction data, enabling seamless wallet cleanup and rent recovery workflows.

This endpoint is currently in beta and may change.

Body Params
accountAddresses
array of objects | null

Specific token account addresses to close (auto-fetches if not provided)

accountAddresses
boolean | null

Use Vybe fee payer for gas

string
required
string | null

Partner identifier

double | null

Fee percentage on recovered rent (0-1, e.g., 0.20 for 20%)

Responses

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