Transaction Methods

These methods handle the creation, simulation, and inspection of transactions on the blockchain. They are essential for executing state changes, estimating fees, checking transaction outcomes, and monitoring transaction lifecycles.

getSignatureStatuses
Available
Returns the signature statuses for a given signature.
Parameters
signatures
required
array[string]
An array of transaction signatures to query, as base-58 encoded strings.
config
Configuration object for the query.
searchTransactionHistory
boolean (optional)
Whether to search the transaction history.

requestAirdrop
Available
Requests an airdrop to a given address.
Parameters
pubkey
required
string
The public key of the account to receive the airdrop, as a base-58 encoded string.
lamports
required
integer
The amount of lamports to airdrop.
config
Configuration object for the query.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'

sendTransaction
Available
Sends a transaction to the cluster.
Parameters
transaction
required
string
The signed transaction, as a base-64 encoded string.
config
Configuration object for the query.
encoding
string (optional)
The encoding for the transaction.
maxRetries
integer (optional)
The maximum number of retries for the transaction.
minContextSlot
integer (optional)
The minimum context slot for the transaction.
preflightCommitment
string (optional)
The commitment level for the preflight check.
skipPreflight
boolean (optional)
Whether to skip the preflight check.

simulateTransaction
Available
Simulates a transaction.
Parameters
transaction
required
string
The transaction to simulate, as a base-64 encoded string.
config
Configuration object for the query.
addresses
array[string] (optional)
An array of account addresses to return, as base-58 encoded strings.
encoding
string (optional)
Encoding for the account data.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
encoding
string (optional)
Encoding for the transaction data.
innerInstructions
boolean (optional)
Whether to include inner instructions in the simulation result.
minContextSlot
integer (optional)
Mincontextslot
replaceRecentBlockhash
boolean (optional)
Whether to replace the recent blockhash with a new one.
sigVerify
boolean (optional)
Whether to verify transaction signatures.

getTransaction
Available
Returns the transaction for a given signature.
Parameters
signature
required
string
The transaction signature to query, as a base-58 encoded string.
config
Configuration object for the query.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
maxSupportedTransactionVersion
integer (optional)
The maximum transaction version to support.

getSignaturesForAddress
Available
Returns the signatures for a given address.
Parameters
address
required
string
The address to query for transaction signatures, as a base-58 encoded string.
before
string (optional)
Start searching backwards from this transaction signature.
limit
integer (optional)
The maximum number of signatures to return.
until
string (optional)
Search until this transaction signature.

getFeeForMessage
Available
Returns the fee for a given message.
Parameters
message
required
string
The message to calculate the fee for, as a base-64 encoded string.
config
Configuration object for the query.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
minContextSlot
integer (optional)
The minimum context slot for the context.

getStakeMinimumDelegation
Available
Returns the stake minimum delegation.
Parameters
config
Configuration object for the query.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
minContextSlot
integer (optional)
The minimum context slot for the context.