curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getTransaction",
"params": [
"4VAGET7z5g7ogVGmbmZ6KBtF6DS8ftLWzD65BXZWQJjwASUqLod7LhGB6mqThcqo97QcC7r7uNmBY8GwsnLAA52n",
{
"encoding": "jsonParsed",
"maxSupportedTransactionVersion": 0
}
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}
curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getTransaction",
"params": [
"4VAGET7z5g7ogVGmbmZ6KBtF6DS8ftLWzD65BXZWQJjwASUqLod7LhGB6mqThcqo97QcC7r7uNmBY8GwsnLAA52n",
{
"encoding": "jsonParsed",
"maxSupportedTransactionVersion": 0
}
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}
getTransaction
methodgetTransaction
method returns detailed information about a specific transaction using its signature.
This method provides comprehensive data about the transaction, including its status, block information, instructions, and more. It’s particularly useful for applications that need to verify transaction details or display transaction information to users.
signature
— the transaction signature as base-58 encoded string.config
(optional) — configuration object:
encoding
— encoding for the returned transaction (default: “json”).maxSupportedTransactionVersion
— the maximum transaction version to return in responses.commitment
— confirmed
or finalized
; the commitment level processed
is not supported here by Solana.slot
— the slot this transaction was processed in.transaction
— transaction object, either JSON format or encoded binary data.meta
— metadata object containing detailed information about the transaction.blockTime
— estimated production time of the block, as Unix timestamp.getTransaction
is in wallet applications or block explorers. These applications can use this method to fetch and display detailed information about a specific transaction, allowing users to view the status, involved accounts, and other relevant data for their transactions.Transaction details
The response is of type object
.
Was this page helpful?