getSignaturesForAddress RPC Method
Please note that the parameter minContextSlot is not a filter on historical transactions. You can use the before or until parameter to filter historical transactions.
Description
Returns confirmed signatures for transactions involving an address backwards in time from the provided signature or most recent confirmed block.
Parameters
account_address
(string, required) - The account address encoded as base-58 stringobject
(array, optional) - The configuration object with the following fields:limit
(integer) - The maximum number of transaction signatures to return (between 1 and 1000). The default value is 1000before
(string, optional) - Start searching backward from this transaction signature. If not provided, the search starts from the top of the highest max confirmed blockuntil
(string, optional) - Searches until this transaction signature, if found before limit reachedcommitment
(string, optional) - The level of commitment required for the query. The options include:finalized
- The node will query the most recent block confirmed by the supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalizedconfirmed
- The node will query the most recent block that has been voted on by the supermajority of the clusterprocessed
- The node will query its most recent block. Note that the block may not be complete
minContextSlot
(integer, optional) - The minimum slot at which the request can be evaluated
Returns
A JSON object with the following fields:
blockTime
- The estimated production time, as Unix timestamp (seconds since the Unix epoch). Null if not availableconfirmationStatus
- The transaction's cluster confirmation status. The status can either be processed, confirmed, or finalizederr
- Error code if the transaction failed or null if the transaction succeedsmemo
- The memo associated with the transaction and null if no memo is presentsignature
- The base58-encoded signature of the transactionslot
- The slot number in which the transaction was confirmed
Code Examples
getRecentPrioritizationFees
Returns a list of prioritization fees from recent blocks
getSignatureStatuses
Returns the statuses of a list of signatures. Unless the searchTransactionHistory configuration parameter is included, this method only searches the recent status cache of signatures, which retains statuses for all active slots plus MAX_RECENT_BLOCKHASHES rooted slots.