getSignatureStatuses
All the specifications for getSignaturesForAddress RPC Method on Solana
Returns the statuses of a list of signatures. Each signature must be a txid, the first signature of a transaction.
Parameters required for this RPC call
addresses: An array of transaction signatures to confirm, as base-58 encoded strings (up to a maximum of 256)
configuration : This contains the following parameters, all are optional fields.
searchTransactionHistory: if
true- a Solana node will search its ledger cache for any signatures not found in the recent status cache.
curl https://rpc.shyft.to?api_key=YOUR-API-KEY -s -X \
POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getSignatureStatuses",
"params": [
[
"5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW"
],
{
"searchTransactionHistory": true
}
]
}
'import {
Connection,
clusterApiUrl,
type SignatureStatusConfig,
} from "@solana/web3.js";
const connection = new Connection("https://rpc.shyft.to?api_key=YOUR-API-KEY", "confirmed");
let signatures = [
"4cdd1oX7cfVALfr26tP52BZ6cSzrgnNGtYD7BFhm6FFeZV5sPTnRvg6NRn8yC6DbEikXcrNChBM5vVJnTgKhGhVu",
];
let config: SignatureStatusConfig = {
searchTransactionHistory: true,
};
let signatureStatus = await connection.getSignatureStatuses(signatures, config);
console.log(signatureStatus);{
"jsonrpc": "2.0",
"result": {
"context": {
"slot": 82
},
"value": [
{
"slot": 48,
"confirmations": null,
"err": null,
"status": {
"Ok": null
},
"confirmationStatus": "finalized"
},
null
]
},
"id": 1
}Last updated
Was this helpful?