sendTransaction RPC Method
Submits a signed transaction to the cluster for processing.Method Behavior
- Relays the transaction to the node exactly as created by clients
- Immediate success means the RPC service received the transaction
- Success does NOT guarantee transaction processing or confirmation
- Transaction could be rejected if
recent_blockhashexpires
Preflight Checks
Before submission, the following checks are performed:- Verify transaction signatures
- Simulate transaction against bank slot specified by preflight commitment
Parameters
string requiredFully-signed Transaction
- Encoded as a string
object optionalConfiguration object with the following fields:encoding
string- Default:
base58 - Encoding for transaction data
base58(slow, DEPRECATED)base64
bool- Default:
false - When
true, skips preflight transaction checks
string- Default:
finalized - Commitment level for preflight checks
usize- Maximum RPC node retries for sending transaction
- If not provided, retries until finalized or blockhash expires
number- Minimum slot for performing preflight checks
Result Details
<string>- Transaction Signature- First signature embedded in the transaction
- Base-58 encoded string
- Used as the transaction identifier
Important Notes
- Recommended to use
getSignatureStatusesto confirm transaction processing - Specify consistent commitment levels to avoid unexpected behavior
- Transaction signatures can be extracted before submission