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
config
Configuration object for the query.
searchTransactionHistory
boolean (optional)
Whether to search the transaction history.
signatures
required
array[string]
An array of transaction signatures to query, as base-58 encoded strings.

requestAirdrop
Available
Requests an airdrop to a given address.
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'
lamports
required
integer
The amount of lamports to airdrop.
pubkey
required
string
The public key of the account to receive the airdrop, as a base-58 encoded string.

sendTransaction
Available
Sends a transaction to the cluster.
Parameters
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. Options are 'processed', 'confirmed', or 'finalized'
skipPreflight
boolean (optional)
Whether to skip the preflight check.
transaction
required
string
The signed transaction, as a base-64 encoded string.

simulateTransaction
Available
Simulates a transaction.
Parameters
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)
The minimum slot that the request can be evaluated at
replaceRecentBlockhash
boolean (optional)
Whether to replace the recent blockhash with a new one.
sigVerify
boolean (optional)
Whether to verify transaction signatures.
transaction
required
string
The transaction to simulate, as a base-64 encoded string.

getTransaction
Available
Returns the transaction for a given signature.
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'
maxSupportedTransactionVersion
integer (optional)
The maximum transaction version to support.
signature
required
string
The transaction signature to query, as a base-58 encoded string.

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
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.
message
required
string
The message to calculate the fee for, as a base-64 encoded string.

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.