# Fetch Empty Token Accounts (Batch) API (`vybe/solana-batch-empty-accounts-api`) Actor

Solana API endpoint for fetching empty Token-2022 and SPL token accounts across multiple wallets. Returns results for up to 10 wallets to identify accounts. Docs: https://docs.vybenetwork.com/reference/get\_empty\_accounts\_many\_v4

- **URL**: https://apify.com/vybe/solana-batch-empty-accounts-api.md
- **Developed by:** [Vybe Network](https://apify.com/vybe) (community)
- **Categories:** Integrations, Other, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Fetch Empty Token Accounts (Batch)

### Solana API Summary

Fetch Empty Token Accounts (Batch)

### Solana API Description

Solana API endpoint for fetching empty Token-2022 and SPL token accounts across multiple wallets. Returns results for up to 10 wallets to identify accounts.

This Solana API actor is designed for search visibility and developer onboarding, with practical endpoint context, strong keyword coverage, and direct doc links for implementation.

Explore docs here: [Fetch Empty Token Accounts (Batch) Docs](https://docs.vybenetwork.com/reference/get_empty_accounts_many_v4) and [Solana API Docs](https://docs.vybenetwork.com/).

### Solana API Usage

Use this endpoint for Solana analytics, token and market intelligence, wallet behavior analysis, and trading automation. The actor follows the official Vybe OpenAPI contract for consistent and accurate integrations.

### Request Body Fields

- `limit` (integer, optional) - Maximum number of empty accounts to return across all wallets. Defaults to 1000.
- `ownerAddresses` (array, required) - List of Solana wallet addresses to query (1-10 wallets).
- `ownerAddresses[]` (string, nested) - Typed Solana public key identifier used across request parameters and response fields.
- `page` (integer, optional) - Page number to return (zero-indexed). Defaults to 0.
- `sortByAsc` (string, optional) - 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.
- `sortByDesc` (string, optional) - 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

- **200**: Combined list of empty token accounts across all provided wallets, plus totals for empty account count and reclaimable rent.
- **400**: Invalid parameters — check that 1-10 wallet addresses are provided, limit does not exceed 1000, and only one of `sortByAsc`/`sortByDesc` is set.
- **500**: Unexpected server error. The response body includes an `id` field — provide this when contacting support.

### Resources

- Base server from OpenAPI: `https://api.vybenetwork.xyz/`
- Source spec file: `openapi_spec.json`
- Endpoint Docs: [Fetch Empty Token Accounts (Batch) Docs](https://docs.vybenetwork.com/reference/get_empty_accounts_many_v4)
- Solana API Docs: <https://docs.vybenetwork.com/>

# Actor input Schema

## `headers` (type: `object`):

Additional request headers. Use this for x-api-key or custom headers not listed above.

## `requestBody` (type: `object`):

Request body payload as defined in OpenAPI requestBody.

## `baseUrl` (type: `string`):

Override API base URL. Defaults to first server in openapi\_spec.json.

## `timeoutMs` (type: `integer`):

HTTP request timeout in milliseconds.

## Actor input object example

```json
{
  "timeoutMs": 30000
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("vybe/solana-batch-empty-accounts-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("vybe/solana-batch-empty-accounts-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call vybe/solana-batch-empty-accounts-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vybe/solana-batch-empty-accounts-api"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/CxQKTBkwBN2tLRpwI/builds/LSoXe9hYdqGTuo5Dx/openapi.json
