Solana API Reference
Complete documentation for accessing Solana blockchain data
Getting Started
All API requests require authentication using an API key. Include your API key in the request header:
X-API-Key: YOUR_API_KEY
Base URL: https://api.acceso.dev
Endpoints
GET
/v1/solana/account/{address}/balanceGet SOL balance for a wallet address
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| address | string | Yes | Solana wallet address |
Example Request
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.acceso.dev/v1/solana/account/{address}/balance"Example Response
{
"success": true,
"data": {
"address": "FGQ3rrA6tPdL4EHMvpZY4rQoMKtp58qvyxBSV5M28DWt",
"balance": 0.079337796,
"lamports": 79337796
}
}GET
/v1/solana/account/{address}/tokensGet all token accounts for a wallet
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| address | string | Yes | Solana wallet address |
Example Request
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.acceso.dev/v1/solana/account/{address}/tokens"Example Response
{
"success": true,
"data": {
"tokens": [
{
"mint": "So11111111111111111111111111111111111111112",
"balance": 1.5,
"decimals": 9
}
]
}
}GET
/v1/solana/token/{mint}/priceGet current price for a token
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| mint | string | Yes | Token mint address or symbol (SOL, USDC, etc.) |
Example Request
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.acceso.dev/v1/solana/token/{mint}/price"Example Response
{
"success": true,
"data": {
"symbol": "SOL",
"price": 131.50,
"currency": "USD"
}
}GET
/v1/solana/account/{address}/nftsGet NFTs owned by a wallet
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| address | string | Yes | Solana wallet address |
| limit | number | No | Max results (default: 20) |
Example Request
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.acceso.dev/v1/solana/account/{address}/nfts"Example Response
{
"success": true,
"data": {
"nfts": [
{
"mint": "7XoZ...",
"name": "Degen Ape #1234",
"collection": "Degen Ape Academy"
}
]
}
}GET
/v1/solana/account/{address}/transactionsGet transaction history for a wallet
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| address | string | Yes | Solana wallet address |
| limit | number | No | Max results (default: 20) |
| before | string | No | Pagination cursor |
Example Request
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.acceso.dev/v1/solana/account/{address}/transactions"Example Response
{
"success": true,
"data": {
"transactions": [
{
"signature": "5k3j...",
"timestamp": 1702860000,
"type": "transfer"
}
]
}
}GET
/v1/solana/transaction/{signature}Get transaction details by signature
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| signature | string | Yes | Transaction signature |
Example Request
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.acceso.dev/v1/solana/transaction/{signature}"Example Response
{
"success": true,
"data": {
"signature": "5k3j...",
"slot": 234567890,
"status": "confirmed",
"fee": 5000
}
}POST
/v1/solana/token/pricesGet prices for multiple tokens at once
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| mints | string[] | Yes | Array of token mint addresses |
Example Request
curl -X POST "https://api.acceso.dev/v1/solana/token/prices" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"mints": ["So11111..."]}'Example Response
{
"success": true,
"data": [
{
"mint": "So11111111111111111111111111111111111111112",
"symbol": "SOL",
"price": 131.50
}
]
}