Solana
Solana
Solana
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
getVersion is a Solana JSON-RPC method that returns the software an RPC node runs on the chain that secures SOL. The response carries "solana-core" — the validator version string like x.y.z — and "feature-set", the numeric identifier of the feature set the node has enabled. It is the quickest way to confirm a node is new enough before you call recently added methods. Send the request as a JSON-RPC 2.0 POST with an empty positional params array to https://solana.therpc.io/YOUR_API_KEY.
solana-core build (for example a v2.0 or newer release) before calling methods that older nodes do not support.solana-core version reported across a provider fleet to track which nodes still need an upgrade.feature-set number so your code only takes a code path once the node has that feature enabled.Este método não aceita parâmetros. Passe um array vazio [].
| Tipo | Descrição |
|---|---|
| object | { "solana-core": "x.y.z", "feature-set": N }. |
| Código | Mensagem | Causa |
|---|---|---|
-32603 | Internal error | The node hit an internal error serving the request — retry, and reduce the requested range/encoding if it persists. |
feature-set number to detect which on-chain features are actually enabled — the solana-core version string alone does not tell you that, since features activate at specific slots independent of the build.