Solana
Solana
Solana
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
sendTransaction submits a fully-signed, encoded transaction to the Solana cluster for inclusion. You pass the serialized transaction — base64 is recommended — and the node forwards it to the current leader and returns the first signature, which you then use to track the result. This is how every SOL transfer, SPL token movement, and program call reaches the chain. Crucially, a returned signature means the transaction was accepted for processing, not that it has confirmed. Call it on TheRPC at https://solana.therpc.io/YOUR_API_KEY.
skipPreflight: true after you have already validated the transaction with a local simulateTransaction, shaving the server-side preflight off the hot path.maxRetries (and preflightCommitment) to push for reliable delivery during congestion instead of relying on the default retry behavior.| # | Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| 1 | transaction | string | Sim | Fully-signed, encoded transaction (base58 or base64). |
| 2 | config | object | Não | Options: encoding (base58|base64), skipPreflight, preflightCommitment, maxRetries, minContextSlot. |
| Tipo | Descrição |
|---|---|
| string | The first signature of the submitted transaction (base-58 string). |
| Código | Mensagem | Causa |
|---|---|---|
-32602 | Invalid params | A param is missing, of the wrong type, or malformed (e.g. a non-base58 pubkey or a bad config field). |
-32603 | Internal error | The node hit an internal error serving the request — retry, and reduce the requested range/encoding if it persists. |
getSignatureStatuses until the signature reaches confirmed or finalized before treating it as done.base64 encoding and set the matching encoding field in config so the node decodes your payload correctly; a mismatch yields an Invalid params (-32602) error.