Metodo RPC getTransaction

Restituisce i dettagli di una transazione confermata

$ curl https://api.devnet.solana.com -s -X \
> POST -H "Content-Type: application/json" -d '
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "getTransaction",
> "params": [
> "5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ",
> {
> "commitment": "confirmed",
> "maxSupportedTransactionVersion": 0,
> "encoding": "json"
> }
> ]
> }
> '

params

stringrequired

Firma della transazione, come stringa codificata in base-58

objectoptional

Oggetto di configurazione contenente i seguenti campi:

result

Response
{
"jsonrpc": "2.0",
"result": {
"blockTime": 1746479684,
}
object | null

Restituisce null se la transazione non viene trovata o non è confermata, altrimenti restituisce un oggetto contenente:

Is this page helpful?