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}/balance

Get SOL balance for a wallet address

Parameters

NameTypeRequiredDescription
addressstringYesSolana 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}/tokens

Get all token accounts for a wallet

Parameters

NameTypeRequiredDescription
addressstringYesSolana 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}/price

Get current price for a token

Parameters

NameTypeRequiredDescription
mintstringYesToken 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}/nfts

Get NFTs owned by a wallet

Parameters

NameTypeRequiredDescription
addressstringYesSolana wallet address
limitnumberNoMax 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}/transactions

Get transaction history for a wallet

Parameters

NameTypeRequiredDescription
addressstringYesSolana wallet address
limitnumberNoMax results (default: 20)
beforestringNoPagination 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

NameTypeRequiredDescription
signaturestringYesTransaction 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/prices

Get prices for multiple tokens at once

Parameters

NameTypeRequiredDescription
mintsstring[]YesArray 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
    }
  ]
}