# 1gateway Solana Wallet Balance Lookup

> 1gateway Solana Wallet Balance Lookup is a paid API for AI agents from 1gateway.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-30).

Returns the SOL balance and all non-zero SPL token holdings for a given Solana mainnet wallet address in a single call

## Facts

- Endpoint: GET https://1gateway.dev/v1/onchain/solana/balances?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/1gateway-solana-wallet-balance-lookup-0a8147eb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kiq4hXzSH1WopnBY-Hsgu

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 1gateway-solana-wallet-balance-lookup-0a8147eb
```

Example prompt: What's the SOL balance and full list of SPL tokens held by the Solana wallet CV8t6fnSsckB3bzJSVRxQjVvTgdB35q11Fu3eaF1nz8u right now?

## When to prefer this

Use this endpoint when you need a complete, single-call snapshot of a Solana wallet's on-chain state — SOL plus all token balances — without wanting to parse raw RPC responses yourself. It is ideal for portfolio display, eligibility checks, or pre-transaction audits. It does not return prices, so pair it with a price feed if USD valuation is needed. Prefer it over raw Solana RPC calls when you want a normalized, structured response at a fixed $0.002/call cost.

## Known failure modes

- 400 Bad Request if the address is not a valid base58-encoded 32-byte public key (not charged)
- Empty token array if the wallet exists but holds no SPL tokens
- Slot lag if the RPC node is slightly behind mainnet tip
- Truncated flag set to true if the wallet holds more than 50 non-zero tokens (only first 50 returned)
- Address not found on-chain returns zero balances (not an error)

## How this service works

Use when an agent needs what a Solana address holds in one call. Input: address. Output: JSON slot, SOL balance, every non-zero token (mint, token account, program, decimals, raw and decimal balance, frozen flag; first 50), counts of token and empty accounts. Chain state only, no prices. Bad input: 400, not charged. Example: ?address=CV8t6fnSsckB3bzJSVRxQjVvTgdB35q11Fu3eaF1nz8u

## Output

A JSON object containing: the current Solana slot, the wallet's SOL balance in both decimal and raw lamports, an array of up to 50 non-zero SPL token entries each with mint address, associated token account, program, decimals, raw and decimal balance, and frozen status; plus counts of total token accounts, non-zero token accounts, empty token accounts, a truncated flag, and the RPC node that served the request.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
       "examples": [
        "CV8t6fnSsckB3bzJSVRxQjVvTgdB35q11Fu3eaF1nz8u"
       ],
       "description": "Wallet address on Solana mainnet (base58, 32 bytes). Bad input → 400 (not charged)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "chain",
      "cluster",
      "address",
      "slot",
      "sol",
      "tokenAccounts",
      "nonZeroTokens",
      "emptyTokenAccounts",
      "tokens",
      "truncated",
      "notes",
      "rpc"
     ],
     "properties": {
      "rpc": {
       "type": "object",
       "properties": {
        "servedBy": {
         "type": "string"
        }
       }
      },
      "sol": {
       "type": "object",
       "properties": {
        "balance": {
         "type": "string"
        },
        "lamports": {
         "type": "string"
        }
       }
      },
      "slot": {
       "type": "integer"
      },
      "chain": {
       "type": "string"
      },
      "notes": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "tokens": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "raw": {
          "type": "string"
         },
         "mint": {
          "type": "string"
         },
         "frozen": {
          "type": "boolean"
         },
         "symbol": {
          "type": [
           "string",
           "null"
          ]
         },
         "balance": {
          "type": "string"
         },
         "program": {
          "type": "string"
         },
         "decimals": {
          "type": "integer"
         },
         "tokenAccount": {
          "type": "string"
         }
        }
       }
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/1gateway-solana-wallet-balance-lookup-0a8147eb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 1gateway.dev](https://www.zero.xyz/host/1gateway.dev/llms.txt)
