Solana Account Tokens API avatar

Solana Account Tokens API

Try for free

Pay $0.50 for 1,000 results

Go to Store
Solana Account Tokens API

Solana Account Tokens API

websift/solana-account-tokens-api
Try for free

Pay $0.50 for 1,000 results

Effortlessly retrieve SOL and SPL token balances for multiple Solana wallets with the Solana Balance API. Get real-time token prices, metadata, and detailed account information. Supports up to 5 wallets per run with built-in error handling for seamless performance.

Solana Balance API

This actor fetches current token balances for multiple Solana wallet addresses. It provides detailed information about SOL balances and all SPL tokens held in the specified wallets.

Features

  • Fetch SOL and SPL token balances for multiple wallet addresses simultaneously
  • Detailed token information including prices and metadata
  • Built-in error handling for each request

Example Usage

1{
2    "accounts": [
3        "DYw8jCTfwHNRJhhmFcbXvVDTqWMEVFBX6ZKUmG5CNSKK",
4        "houdini2PmQ2ojv6qhC9KY5wqrr5V4PQTPT4RQfcGe"
5    ]
6}

Output

Example Output:

1[
2    {
3        "token_name": "Token Name",
4        "token_symbol": "SYMBOL",
5        "token_address": "token_mint_address",
6        "price_usdt": 0.00,
7        "balance": 0.00,
8        "value": 0.00,
9        "amount": 0,
10        "decimals": 0, // Number of decimal places needed to convert to lamports
11        "owner": "wallet_address",
12        "token_account": "token_account_address", // (N/A for native SOL)  
13        "token_icon": "token_icon_url"
14    }
15]

If an error occurs, the output will include an error message:

1{
2    "message": "Error description"
3}

Limitations

  • Only processes up to 5 accounts per run to ensure reliable performance
  • Some tokens might have missing data fields marked as "N/A" if not available on

Error Handling

The actor includes comprehensive error handling for:

  • Invalid wallet addresses
  • API request failures
  • Malformed API responses

Each error is properly logged and returned in the actor's output for transparency.

Support

For issues, feature requests, or questions about this actor, please create an issue.

Developer
Maintained by Community

Actor Metrics

  • 5 monthly users

  • 1 bookmark

  • >99% runs succeeded

  • Created in Feb 2025

  • Modified 21 days ago