getSignatureStatuses
Learn about getSignatureStatuses—its use cases, code examples, request parameters, response structure, and practical tips.
The getSignatureStatuses RPC method in CoinVera allows you to retrieve the processing and confirmation status of one or more transaction signatures. It's a powerful tool to determine whether transactions have been processed, confirmed, or finalized on the Solana network.
By default, this method queries the recent status cache on the RPC node. To retrieve status for older transactions, set searchTransactionHistory to true.
✅ Common Use Cases
Confirming Transaction Finality Verify if a transaction has reached a desired confirmation level, such as
confirmedorfinalized.Batch Status Lookup Check the status of up to 256 transactions in a single request—useful after batch sends.
UI Updates Based on Status Display real-time transaction progress in your frontend.
Error Checking Identify failed transactions and inspect error details.
🧾 Request Parameters
signatures(array of string) – Required An array of base-58 encoded transaction signatures. Up to 256 per call.options(object) – OptionalsearchTransactionHistory(boolean): Iftrue, the node will search its full transaction history. Iffalse(default), only the recent cache is used.
📦 Response Structure
{
"result": {
"context": {
"slot": 12345678
},
"value": [
{
"slot": 12345678,
"confirmations": 2,
"err": null,
"status": { "Ok": null },
"confirmationStatus": "confirmed"
},
null
]
}
}context.slot– Slot when the request was processed.value[]– Array matching the order of requested signatures:If found:
slot: Slot where the transaction was processed.confirmations: Number of blocks confirmed since then.nullmeans finalized.err:nullif successful, or error details.status: Execution status.confirmationStatus: One ofprocessed,confirmed,finalized, ornull.
If not found:
null: Signature not found (e.g., not in cache and no history search).
🧪 Examples
1. Get Status for Recent Transactions
Query recent transactions without enabling historical search.
2. Get Status with searchTransactionHistory: true
Use this when querying older transactions or when unsure if they're still in cache.
Code Examples
Example Response
💡 Developer Tips
Enable
searchTransactionHistoryfor older or uncertain transactions.Limit of 256 Signatures per request—batch intelligently.
A
nullentry in the value array means:Not found in cache.
Not in node history.
Transaction was never confirmed.
confirmations: nullusually indicates the transaction is finalized.Use the
errandstatusfields to handle transaction failures gracefully.
CoinVera’s getSignatureStatuses is a lightweight yet essential tool for monitoring transaction lifecycles, especially in high-throughput environments. For reliability, always set
Last updated