Solana
Bereit, das in der Produktion aufzurufen?
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
Solana
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
This page lists every Solana API method TheRPC supports, each with its purpose and usage at a glance. The surface splits in two: HTTP request/response methods — the account, SPL token, transaction, block, and cluster/economics calls plus sendTransaction — and the WebSocket PubSub *Subscribe methods that push real-time notifications over a wss:// connection. Click any method name to open its full documentation, with parameters, response shape, error cases, and runnable code examples.
quick-startGet a TheRPC API key and make your first Solana JSON-RPC call with curl, JavaScript, and Python — read the current slot in minutes.
authenticationObtain, place, and secure a TheRPC API key for Solana requests — URL-path keys, the Bearer header, the wss key, env vars, and auth error handling.
rate-limitsHow TheRPC rate-limits Solana API requests, the -32029 error and headers, and how to handle them with backoff, batching, caching, and subscriptions.
api-overviewTheRPC's Solana JSON-RPC 2.0 API: HTTP and WebSocket PubSub endpoints, positional params, RpcResponse context, commitment levels, and encodings.
faqSolana API FAQ on TheRPC — API keys, rate limits, JSON-RPC error codes, commitment levels, confirming transactions, clusters, and SDK choices.
basic-operationsCommon Solana operations via TheRPC: read SOL balances and accounts, query signatures and transactions, fetch blocks, list SPL tokens, and send.
all-methodsFull reference of every supported Solana JSON-RPC method on TheRPC — accounts, SPL tokens, transactions, blocks, cluster, and WebSocket PubSub.
getAccountInfoRead on-chain state, owner, and lamports for one Solana account by address with the getAccountInfo JSON-RPC method on TheRPC.
getBalanceGet the lamport (SOL) balance of any Solana account by address with the getBalance JSON-RPC method on TheRPC. 1 SOL = 1e9 lamports.
getLargestAccountsList the 20 largest Solana accounts by lamport (SOL) balance, filtered by circulating or non-circulating, with getLargestAccounts on TheRPC.
getMinimumBalanceForRentExemptionCompute the minimum lamports a Solana account of a given byte size needs to be rent-exempt with getMinimumBalanceForRentExemption on TheRPC.
getMultipleAccountsRead many Solana accounts in one round-trip with getMultipleAccounts — batched getAccountInfo for token, PDA, and program accounts on TheRPC.
getProgramAccountsScan every account owned by a Solana program, narrowed by dataSize and memcmp filters, with getProgramAccounts on TheRPC.
getBlockCall getBlock on Solana to fetch a confirmed block for a slot, with its transactions, SOL rewards, and blockTime, over JSON-RPC.
getBlockCommitmentCall getBlockCommitment on Solana to read the stake-weighted commitment of a slot and gauge how close a block is to finality.
getBlockHeightCall getBlockHeight on Solana to read the current block height over JSON-RPC, for transaction-expiry checks and liveness probes.
getBlockProductionCall getBlockProduction on Solana to read per-validator leader slots and blocks produced over a range, for skip-rate and staking dashboards.
getBlocksCall getBlocks on Solana to list the confirmed block slots in a slot range over JSON-RPC, for indexers that walk blocks and detect skips.
getBlocksWithLimitCall getBlocksWithLimit on Solana to fetch up to N confirmed slots from a start slot over JSON-RPC, for fixed-batch block paging.
getBlockTimeCall getBlockTime on Solana to get a slot's estimated Unix production time over JSON-RPC, for timestamping transactions and charts.
getFirstAvailableBlockCall getFirstAvailableBlock on Solana to find the lowest confirmed slot a node still serves, so you know when to fall back to archival.
getRecentPerformanceSamplesCall getRecentPerformanceSamples on Solana to read recent transaction and slot counts per window over JSON-RPC, for TPS and throughput charts.
minimumLedgerSlotCall minimumLedgerSlot on Solana to read the lowest slot a node still keeps in its ledger over JSON-RPC, to bound historical queries.
getFeeForMessagePrice a serialized Solana message against a recent blockhash with getFeeForMessage, returning the fee in lamports over JSON-RPC.
getLatestBlockhashGet a fresh Solana blockhash and its lastValidBlockHeight with getLatestBlockhash, so you can build, sign, and time out transactions.
getRecentPrioritizationFeesRead recent Solana priority fees per compute unit with getRecentPrioritizationFees to set a competitive fee that lands during congestion.
getSignaturesForAddressList Solana transaction signatures that touched a wallet or program, newest first, with getSignaturesForAddress over JSON-RPC.
getSignatureStatusesCheck the confirmation status of a batch of Solana signatures with getSignatureStatuses to track whether transactions confirmed or failed.
getTransactionFetch a confirmed Solana transaction by signature with getTransaction, including meta, balances, logs, and fee, over JSON-RPC.
getTransactionCountGet the cumulative number of transactions the Solana cluster has processed with getTransactionCount over JSON-RPC to gauge throughput.
isBlockhashValidCheck whether a Solana blockhash is still usable for a transaction with isBlockhashValid before you resend, over JSON-RPC.
requestAirdropRequest a devnet or testnet SOL airdrop to an address with requestAirdrop to fund test wallets in lamports over JSON-RPC.
sendTransactionBroadcast a fully-signed Solana transaction to the cluster with sendTransaction and get back its signature over JSON-RPC.
simulateTransactionDry-run a Solana transaction with simulateTransaction to get logs, compute units, and errors without broadcasting, over JSON-RPC.
getTokenAccountBalanceRead the balance of a single SPL token account on Solana with getTokenAccountBalance over JSON-RPC at solana.therpc.io.
getTokenAccountsByDelegateList SPL token accounts a delegate is approved to move on Solana with getTokenAccountsByDelegate over JSON-RPC at solana.therpc.io.
getTokenAccountsByOwnerList the SPL token accounts a Solana wallet owns, filtered by mint or program, with getTokenAccountsByOwner at solana.therpc.io.
getTokenLargestAccountsGet the 20 largest accounts of a Solana token mint with getTokenLargestAccounts over JSON-RPC at solana.therpc.io.
getTokenSupplyRead the total supply of a Solana SPL token mint with getTokenSupply over JSON-RPC at solana.therpc.io — amount, decimals, uiAmountString.
getInflationGovernorRead Solana's inflation governor parameters (initial, terminal, taper, foundation) over JSON-RPC with getInflationGovernor on solana.therpc.io.
getInflationRateGet Solana's SOL inflation rate for the current epoch (total, validator, foundation) over JSON-RPC with getInflationRate on solana.therpc.io.
getInflationRewardGet Solana staking rewards in SOL for stake accounts in a given epoch via getInflationReward on the solana.therpc.io JSON-RPC endpoint.
getStakeMinimumDelegationGet the minimum SOL delegation for a Solana stake account (in lamports) via getStakeMinimumDelegation on the solana.therpc.io JSON-RPC endpoint.
getSupplyGet total, circulating, and non-circulating SOL supply in lamports via getSupply on the solana.therpc.io JSON-RPC endpoint.
getClusterNodesCall getClusterNodes on Solana to list every cluster node with its gossip, TPU, RPC ports, and software version via TheRPC.
getEpochInfoCall getEpochInfo on Solana to read the current epoch, slot index, slots in epoch, absolute slot, and block height via TheRPC.
getEpochScheduleCall getEpochSchedule on Solana to read slotsPerEpoch, warmup, and firstNormalEpoch so you can map slots to epochs via TheRPC.
getGenesisHashCall getGenesisHash on Solana to read the base-58 genesis hash and confirm whether an endpoint serves mainnet or devnet via TheRPC.
getHealthCall getHealth on Solana to check whether an RPC node is caught up to the cluster before routing traffic to it via TheRPC.
getHighestSnapshotSlotCall getHighestSnapshotSlot on Solana to read the highest full and incremental snapshot slots a node holds for fast validator bootstrap via TheRPC.
getIdentityCall getIdentity on Solana to read the identity pubkey of the RPC node serving your request, useful behind a load balancer, via TheRPC.
getLeaderScheduleCall getLeaderSchedule on Solana to map each validator to the slots it leads in an epoch, optionally filtered to one identity, via TheRPC.
getMaxRetransmitSlotCall getMaxRetransmitSlot on Solana to read the highest slot a node has seen from the turbine retransmit stage for propagation diagnostics via TheRPC.
getMaxShredInsertSlotCall getMaxShredInsertSlot on Solana to read the highest slot a node has inserted shreds for, to spot pipeline lag, via TheRPC.
getSlotCall getSlot on Solana to read the current slot at a chosen commitment, a fast liveness probe and scan anchor, via TheRPC.
getSlotLeaderCall getSlotLeader on Solana to read the pubkey of the validator producing blocks right now, useful for transaction routing, via TheRPC.
getSlotLeadersCall getSlotLeaders on Solana to list the leader pubkey per slot across a range (up to 5000) for transaction routing via TheRPC.
getVersionCall getVersion on Solana to read the solana-core version and feature-set number of an RPC node before using newer methods, via TheRPC.
getVoteAccountsCall getVoteAccounts on Solana to list active and delinquent validators with their stake, commission, and last vote via TheRPC.
accountSubscribeStream live lamport and data changes for a Solana account with accountSubscribe over WebSocket; pair with accountUnsubscribe.
blockSubscribeStream new Solana blocks as they are produced with blockSubscribe over WebSocket; filter by program or account and stop with blockUnsubscribe.
logsSubscribeStream Solana transaction log messages live with logsSubscribe over WebSocket; filter by program or account and stop with logsUnsubscribe.
programSubscribeStream live changes to every account owned by a Solana program with programSubscribe over WebSocket; filter and stop with programUnsubscribe.
rootSubscribeStream new Solana roots as finalization advances with rootSubscribe over WebSocket; pair with rootUnsubscribe to stop.
signatureSubscribeGet a single push when a Solana transaction signature reaches a commitment with signatureSubscribe; it fires once, then auto-cancels.
slotSubscribeStream every new processed Solana slot with slotSubscribe over WebSocket; drive a live height ticker and stop with slotUnsubscribe.
curlCall the Solana JSON-RPC 2.0 API with curl over HTTP POST — authenticate with your TheRPC key, fetch the slot, SOL balance, and account info.
javascript-typescriptConnect to Solana from JS/TS with @solana/web3.js — build a Connection, read SOL balances and accounts, send transactions, and subscribe over WebSocket.
pythonConnect to Solana from Python with solana-py and solders — install, use the sync Client and AsyncClient, read SOL balances, and send a transfer.
rustConnect to Solana from Rust with solana-client — set up Cargo.toml, use the blocking and async RpcClient, read SOL balances, and send a transfer.
goConnect to Solana from Go with gagliardetto/solana-go — install the SDK, read SOL balances and accounts, send a System transfer, and stream PubSub updates.
accounts-and-rentLearn the Solana account model and rent exemption — reading account state, lamports vs SOL, and sizing accounts with getAccountInfo over JSON-RPC.
commitment-levelsUnderstand Solana commitment levels — processed, confirmed, and finalized — how they trade latency for safety, and when to use each on JSON-RPC reads.
versioned-transactionsBuild Solana versioned (v0) transactions with Address Lookup Tables — why they exist and why getTransaction needs maxSupportedTransactionVersion set to 0.
sending-and-confirming-transactionsMaster the full Solana send flow — simulate, set priority fees, submit with sendTransaction, then confirm via getSignatureStatuses before a blockhash expires.
working-with-spl-tokensRead Solana SPL Token and Token-2022 data — list a wallet's token accounts, read balances, mint supply, and largest holders with getTokenAccountsByOwner.
websocket-subscriptionsStream real-time Solana data over WebSocket PubSub — subscribe to accounts, logs, signatures, and slots via wss, handle notifications, and unsubscribe cleanly.