Docs

Live Solana data, ready to use

You send a request to a web address. The gateway does the Solana work and sends back a clean, structured answer. This page covers which call to pick, what it costs, and how to get started.

New to APIs? Start with What is a call?

Free reads, then pay per call

Basic reads are free (rate-limited). Every other tool has 3 free calls, shared between HTTP and MCP, then costs $0.001 to $0.01 in USDC per successful call. You pay with each request through the open x402 protocol: no account, no API key, no prepaid balance.

Free and free calls TRY

Basic reads are always free. Each paid tool can be tried 3 times.

  1. You send a requestNo sign-in and no key.
  2. The gateway checks and prepares itFills in supported defaults and validates inputs.
  3. Live data is fetched from SolanaRead live from the chain, not from a stale copy.
  4. You get a clean answerStructured JSON.

Which call should I use?

Start from the question you want answered. Every call also accepts an optional network (default mainnet-beta). Where an input is left blank, the gateway picks a sensible live value for most calls and reports what it chose.

You want to knowUseCostYou send
Basic reads are free; other calls have 3 free calls, then a USDC price per successful call
How much SOL does this wallet hold?SOL balanceGET /api/solana/balanceFreewallet
Which tokens does this wallet hold?Token holdingsGET /api/solana/token-accountsFreewallet
What has this wallet done lately?Recent transactionsGET /api/solana/transactionsFreewallet, optional limit (up to 50)
What blockhash do I need to build a transaction?Latest blockhashGET /api/solana/blockhashFreenothing required
What is this wallet's token account for a token, and does it exist yet?Token account addressGET /api/solana/find-ataFreewallet, mint
What will this transaction do if I send it?Transaction previewPOST /api/solana/simulatetransaction (base64)
Is this transaction likely to fail, and how do I fix it?Pre-flight safety checkPOST /api/solana/validate-and-simulatetransaction (base64)
What are this token's mint and freeze authorities?Token profileGET /api/solana/token-profilemint
What priority fee should I pay right now?Priority fee adviceGET /api/solana/optimal-feenothing required
What actually happened in this transaction?Explain transactionGET /api/solana/decode-txsignature

About the pre-flight check. It tells you what it checked, for example whether the fee payer can cover the base fee, and shows the result of a dry run. It is a check for common mistakes, not a guarantee that a transaction will succeed.

About token authority risk. The token profile reports mint and freeze authorities. Its freeze-authority risk flag is a heuristic and does not detect honeypots or guarantee whether a token is safe to trade.

If something goes wrong

StatusMeaningWhat to do
400A required input is missing or invalid.Check the inputs in the table above.
402Payment required: this tool's free calls are used.Pay with an x402 client; the PAYMENT-REQUIRED header has the details.
404The token or transaction was not found.Check the address or signature, and that the transaction is confirmed.
422The address exists but is not a token.Use a token mint address.
503Usage metering or payments are briefly unavailable.Try again in a moment.

Pay per call with x402

There is no signup, no email and no API key. Paid calls are paid one at a time in USDC on Solana with the x402 protocol, so any agent or app with a Solana wallet can pay automatically.

Step 1

Get a Solana wallet with USDC

A few cents of USDC covers many calls. You do not need SOL for fees; the payment facilitator covers network fees.

Step 2

Use an x402 client

Wrap your HTTP client with @x402/fetch, or your MCP client with @x402/mcp. It answers the 402 by signing the exact USDC transfer.

Step 3

Call as usual

Paid calls settle only when they succeed. Each response carries a PAYMENT-RESPONSE receipt with the Solana transaction signature.

curl -i "https://YOUR-GATEWAY/api/solana/token-profile?mint=<token_mint>"
# After 3 free calls: HTTP/1.1 402 Payment Required + PAYMENT-REQUIRED header

Full price list and copy-ready client code are on the Pricing tab.

Open the playground

For AI agents

The gateway is also a Model Context Protocol (MCP) server, which is a menu written for robots. AI tools can discover and call it directly.

MCP endpoint

/mcp (send requests with POST)

Tool manifest

/.well-known/mcp.json

Plain-text guide

/llms.txt