Skip to main content
The Transaction Service manages the complete Solana transaction lifecycle — from draft construction through compilation, signing, and on-chain submission. Every transaction progresses through a defined set of states: DRAFT → COMPILED → PARTIALLY_SIGNED → FULLY_SIGNED → submitted. See the Transaction Lifecycle concept page for a full walkthrough with state machine diagram.

Methods

MethodDescriptionState Transition
CompileTransactionSerialize a draft transaction to wire format, fetching the latest blockhash.DRAFT → COMPILED
EstimateTransactionEstimate compute units and fee lamports for a compiled transaction.None (read-only)
SimulateTransactionDry-run a transaction against current ledger state without committing it.None (read-only)
SignTransactionAdd one or more cryptographic signatures to a compiled transaction.COMPILED → PARTIALLY_SIGNED → FULLY_SIGNED
CheckIfTransactionIsExpiredCheck whether a compiled transaction’s blockhash has expired (~150 slots).None (read-only)
SubmitTransactionBroadcast a fully signed transaction to the Solana network.FULLY_SIGNED → submitted
GetTransactionLook up an on-chain transaction by signature.None (read-only)
MonitorTransactionStream real-time status updates for a submitted transaction.Streaming RPC