Metodo RPC getSignatureStatuses

Restituisce gli stati di un elenco di firme. Ogni firma deve essere un txid, la prima firma di una transazione.

A meno che non sia incluso il parametro di configurazione searchTransactionHistory, questo metodo cerca solo nella cache degli stati recenti delle firme, che conserva gli stati per tutti gli slot attivi più MAX_RECENT_BLOCKHASHES slot radicati.

$ curl https://api.devnet.solana.com -s -X \
> POST -H "Content-Type: application/json" -d '
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "getSignatureStatuses",
> "params": [
> [
> "5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW"
> ],
> {
> "searchTransactionHistory": true
> }
> ]
> }
> '

params

arrayrequired

Un array di firme di transazioni da confermare, come stringhe codificate in base-58 (fino a un massimo di 256)

objectoptional

Oggetto di configurazione contenente i seguenti campi:

result

Response
{
"jsonrpc": "2.0",
"result": {
"context": {
"slot": 82
},
"value": [
{
"slot": 48,
"confirmations": null,
"err": null,
"status": {
"Ok": null
},
"confirmationStatus": "finalized"
},
null
]
},
"id": 1
}
array

Un array di RpcResponse<object> costituito da null oppure da un oggetto contenente i seguenti campi:

Is this page helpful?