Skip to main content

sendTransaction RPC Method

Submits a signed transaction to the cluster for processing.

Updated on
Feb 20, 2025

sendTransaction RPC Method

Protect your transactions from toxic MEV threats like sandwich attacks and front-running, by enabling the Solana MEV Protection & Recovery add-on on your QuickNode endpoint. To learn more about MEV and how to protect your transactions on Solana, check out our guide: What is MEV (Maximum Extractable Value) and How to Protect Your Transactions on Solana.

Parameters

transaction
string
The transaction as an encoded string.
object
array
The configuration object with the following fields:
skipPreflight
boolean
(default: false) If true, skip the preflight transaction checks
preflightCommitment
string
(default: finalized) The commitment level to use for preflight
encoding
string
The encoding format for account data. It can be one of base58 (slow), base64, base64+zstd or jsonParsed
maxRetries
usize
The maximum number of times for the RPC node to retry sending the transaction to the leader. If this parameter is not provided, the RPC node will retry the transaction until it is finalized or until the blockhash expires
minContextSlot
integer
The minimum slot at which the request can be evaluated

Returns

result
The First Transaction Signature embedded in the transaction, as base-58 encoded string (transaction id)
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free