# Solana API

The Crypto APIs Solana API, part of the Blockchain API, lets you read SOL and SPL token balances and transactions and send them without running a node. One API key covers mainnet and devnet. Webhooks tell your server when a payment confirms, and we never hold your private keys.

## Key facts

| | |
| --- | --- |
| Networks | Mainnet, Devnet |
| Model | Account (Solana) |
| Endpoints | 22 |
| Confirmations webhook | Yes, per address |
| Custody | Non-custodial, you sign |
| Free trial | 14 days, no card |

## How do I get a Solana address balance?

Send one GET request with your API key; the same request works on devnet when you replace mainnet with devnet in the path.

```
curl https://rest.cryptoapis.io/addresses-latest/solana/mainnet/YOUR_ADDRESS/balance \
  -H "X-API-Key: YOUR_API_KEY"
```

## Which Solana endpoints are available?

The main calls. Every path takes the network: mainnet or devnet.

| What it does | Method and path | Reference |
| --- | --- | --- |
| Address balance | `GET /addresses-latest/solana/mainnet/{address}/balance` | [Docs](https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/address-latest-solana/get-address-balance-solana/get) |
| Transactions of an address | `GET /addresses-latest/solana/mainnet/{address}/transactions` | [Docs](https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/address-latest-solana/list-transactions-by-address-solana/get) |
| Tokens held by an address | `GET /addresses-latest/solana/mainnet/addresses/{address}/tokens` | [Docs](https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/address-latest-solana/list-tokens-by-address-solana/get) |
| Transaction by hash | `GET /transactions/solana/mainnet/{signature}/details` | [Docs](https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/transactions-data-solana/get-transaction-details-by-transaction-hash-solana/get) |
| Fee recommendations | `GET /blockchain-fees/solana/mainnet/mempool` | [Docs](https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/blockchain-fees-solana/get-fee-recommendations-solana/get) |
| Prepare an unsigned transaction | `POST /prepare-transactions/solana/mainnet/native-coins` | [Docs](https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/prepare-transactions-solana/prepare-a-native-coin-transfer-from-address-solana/post) |
| Broadcast a signed transaction | `POST /broadcast-transactions/solana/mainnet` | [Docs](https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/broadcast-locally-sign-transactions/broadcast-locally-signed-transaction/post) |
| Webhook on a confirmed payment | `POST /blockchain-events/solana/mainnet/address-coins-transactions-confirmed` | [Docs](https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/create-subscriptions-for/new-confirmed-coins-transactions/post) |

## Solana API questions

**Is there a free Solana API?** You can try it free for 14 days. The Blockchain API free trial covers Solana and every feature, with no card. It ends after 14 days or when its credits run out; after that, calls need a subscription, listed on the pricing page.

**How do I get the balance of a Solana address?** Call the address balance endpoint for the SOL balance. SPL tokens are held in separate token accounts, so list the address's tokens to see them.

**How do I broadcast a Solana transaction?** Sign the transaction on your own server, then send the signed raw transaction to the broadcast endpoint, authenticated with your API key, and Crypto APIs pushes it to the Solana network and returns the transaction ID. We can prepare the unsigned transaction for you first.

**Do you support Solana devnet?** Yes. Every Solana endpoint works on mainnet and devnet. Change mainnet to devnet in the path; the same API key works on both.

**What makes Solana different to work with?** It is an account-model chain where token balances live in separate token accounts. An SPL token balance is held in its own account derived from the wallet and the mint, so reading a holding means resolving that account rather than looking at the wallet address directly.

**How do I know when a Solana transaction is confirmed?** Create a webhook subscription for the address. Crypto APIs calls your URL when a transaction to or from it confirms on Solana.

## The Solana token

The Solana blockchain and cryptocurrency ecosystem is often touted as an “Ethereum Killer”. With its lightning speed, lower transaction fees, and smart contract functionality, Solana is taking a growing share of the blockchain market.

Solana has its own native and utility token, SOL which is used to pay for transaction fees on the network. It is also used for staking allowing users to support Solana’s security while earning rewards. The inflationary token is designed to have a decreasing supply and an annual inflation rate of 1.5%.

| About Solana | |
| --- | --- |
| Released | 2020 |
| Consensus | Tower BFT (Proof of History) |
| Block time | ~400ms - 746ms |
| Smart contracts | Yes, called Programs |

## Other chains on the same API

- [Ethereum API](/chains/ethereum)
- [Tron API](/chains/tron)
- [Base API](/chains/base)

## Pointers

- [Blockchain API](/products/blockchain-api)
- [All networks](/what-we-support)
- [Pricing](/pricing)
- [Developer portal](https://developers.cryptoapis.io/)
