Skip to content
hSOLDocumentation
Developer hub

Build your next Solana app.

Everything you need to connect, query, and stream on-chain data through fast and privacy-conscious infrastructure.

Quickstart

Make your first RPC request

Use any HTTP client to call hSOL. This example asks the Solana cluster for its latest processed slot.

  1. 1

    Create an API key

    Create a key from your hSOL dashboard, then store it in an environment variable. Never expose a production key in browser code.

    HSOL_API_KEY=your_secret_key
  2. 2

    Send a getSlot request

    Choose your language and replace the placeholder with your own key.

    curl https://mainnet.hsol.dev \
      --header "Authorization: Bearer YOUR_HSOL_KEY" \
      --header "Content-Type: application/json" \
      --data '{
        "jsonrpc": "2.0",
        "id": 1,
        "method": "getSlot"
      }'
  3. 3

    Read the response

    A successful request returns a JSON-RPC response with the current slot in the result field.

    200 OK · Example response
    {
      "jsonrpc": "2.0",
      "result": 317204811,
      "id": 1
    }

Core concepts

Authentication

Send your API key as a bearer token with every request. Keep keys on your server and use separate keys for development and production.

Authorization header

Authorization: Bearer YOUR_HSOL_KEY

Environments

Build against devnet without spending real assets, then switch the base URL when you are ready for mainnet.

Mainnet

Production applications and live assets.

https://mainnet.hsol.dev
Devnet

Development, testing, and integration checks.

https://devnet.hsol.dev

Explore the stack

More than RPC

Use the same platform as your application grows from simple reads to live event-driven experiences.

Data APIs

Request parsed transaction history, token balances, and asset metadata without maintaining your own indexer.

Real-time streams

Subscribe to account, transaction, and slot updates so your interface can react as the chain changes.

Transaction sending

Submit signed transactions, track confirmation, and use priority-fee estimates to choose an appropriate fee.

API reference

Common RPC methods

hSOL uses standard Solana JSON-RPC request and response shapes. All methods below accept POST requests.

POSTgetSlot

Return the slot most recently processed by the cluster.

Parameters: Optional commitment configuration

POSTgetBlockHeight

Return the current block height of the ledger.

Parameters: Optional commitment configuration

POSTgetBalance

Return an account's lamport balance.

Parameters: Base-58 account address

Rate limits & retries

Design clients to handle temporary load without overwhelming the network or degrading your app's responsiveness.

Handle 429 responses

Pause before retrying and honor any retry guidance returned with the response.

Use exponential backoff

Increase the delay between retries and add jitter to avoid synchronized request bursts.

Privacy & security

Treat your infrastructure credentials and your users' data with the same care as your application keys.

A safer default setup

  • Keep production API keys in server-side environment variables.
  • Use devnet for development and test with valueless assets.
  • Rotate exposed keys and restrict credentials by environment.

Ready to make your first call?

Get a key and start building on hSOL.

Start building