This method does not alter the transaction in any way; it relays the transaction
created by clients to the node as-is.If the node’s rpc service receives the transaction, this method immediately
succeeds, without waiting for any confirmations. A successful response from this
method does not guarantee the transaction is processed or confirmed by the
cluster.While the rpc service will reasonably retry to submit it, the transaction could
be rejected if transaction’s recent_blockhash expires before it lands.Use getSignatureStatuses to ensure a
transaction is processed and confirmed.Before submitting, the following preflight checks are performed:
The transaction signatures are verified
The transaction is simulated against the state at the preflight commitment.
On failure an error will be returned. Preflight checks may be disabled if
desired. It is recommended to specify the same commitment and preflight
commitment to avoid confusing behavior.
When preflight simulation fails, the error data uses the same
Simulation Results structure
documented for simulateTransaction.The returned signature is the first signature in the transaction, which is used
to identify the transaction
(transaction id). This identifier
can be easily extracted from the transaction data before submission.The Kit, web3.js, and Rust examples sign a new transfer with a recent blockhash,
using the Solana CLI keypair at ~/.config/solana/id.json. Fund it with devnet
SOL from the Solana Faucet first. The cURL example
sends a signed transfer whose blockhash has expired: with skipPreflight the
node still returns its signature, but the cluster drops the transaction.
Values: binary, base58, base64Encoding used for the transaction data.
Encoding
Notes
base64
Recommended
base58
Slow
binary
⚠️ Deprecated. Legacy alias for base58, retained for backwards compatibility
The default base58 encoding is capped at 1,232 bytes and cannot carry a
v1 transaction
larger than that — use base64 for transactions over 1,232 bytes.
Values: processed, confirmed, finalizedCommitment level to use for preflight when skipPreflight is false. Default
finalized. When skipPreflight is true, this field is ignored and the RPC
node uses processed internally.Solana RPC uses the following commitment levels:
Value
Description
processed
Return data from the highest slot this node has processed. This is the newest view, but the block can still be skipped.
confirmed
Return data from the same slot as finalized. Kept for compatibility and planned for removal in a later release.
finalized
Return data from the highest slot with a finalization certificate, from votes by 80% of stake in one round or 60% of stake in each of two rounds. This is the strongest commitment level.
Maximum number of times for the RPC node to retry sending the transaction to the
leader. If this parameter not provided, the RPC node will retry the transaction
until it is finalized or until the blockhash expires.