Use when an agent needs what a Solana address holds in one call
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
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://1gateway.dev/v1/onchain/solana/balances
| Category | Market data |
|---|---|
| Provider host | 1gateway.dev |
| Networks | eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 2 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"address": "CV8t6fnSsckB3bzJSVRxQjVvTgdB35q11Fu3eaF1nz8u"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"additionalProperties": false,
"properties": {
"address": {
"description": "Wallet address on Solana mainnet (base58, 32 bytes). Bad input \u2192 400 (not charged)",
"examples": [
"CV8t6fnSsckB3bzJSVRxQjVvTgdB35q11Fu3eaF1nz8u"
],
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
"type": "string"
}
},
"required": [
"address"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"address": {
"type": "string"
},
"chain": {
"type": "string"
},
"cluster": {
"type": "string"
},
"emptyTokenAccounts": {
"type": "integer"
},
"nonZeroTokens": {
"type": "integer"
},
"notes": {
"items": {
"type": "string"
},
"type": "array"
},
"rpc": {
"properties": {
"servedBy": {
"type": "string"
}
},
"type": "object"
},
"slot": {
"type": "integer"
},
"sol": {
"properties": {
"balance": {
"type": "string"
},
"lamports": {
"type": "string"
}
},
"type": "object"
},
"tokenAccounts": {
"type": "integer"
},
"tokens": {
"items": {
"properties": {
"balance": {
"type": "string"
},
"decimals": {
"type": "integer"
},
"frozen": {
"type": "boolean"
},
"mint": {
"type": "string"
},
"program": {
"type": "string"
},
"raw": {
"type": "string"
},
"symbol": {
"type": [
"string",
"null"
]
},
"tokenAccount": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"truncated": {
"type": "boolean"
}
},
"required": [
"chain",
"cluster",
"address",
"slot",
"sol",
"tokenAccounts",
"nonZeroTokens",
"emptyTokenAccounts",
"tokens",
"truncated",
"notes",
"rpc"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}