Skip to main content

ord_getTx RPC Method

Fetch a transaction.

Updated on
May 17, 2024

ord_getTx RPC Method

Please note that this method requires the Ordinals & Runes API add-on enabled on your QuickNode endpoint.

Parameters

transactionId
string
REQUIRED
The Transaction id which needs to be fetched

Returns

chain
string
The blockchain network on which the transaction occurred
etching
string
The etching associated with the rune
inscription_count
integer
The number of inscriptions associated with the transaction
transaction
object
The transaction object which contains the following fields:
version
integer
The transaction version
lock_time
integer
The lock time of the transaction
input
array
Array containing details of transaction inputs, including:
previous_output
string
The previous output being spent
script_sig
string
The script signature
sequence
integer
The sequence number
witness
array
Array containing witness data
output
array
Array containing details of transaction outputs, including:
value
integer
The value of the output
script_pubkey
string
The script public key
txid
string
The transaction ID
Request
1
curl --location 'https://docs-demo.btc.quiknode.pro/' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"method": "ord_getTx",
5
"params": [
6
"d74335d2bbcd62f5f83697ea0c172de47858f33353f542ccd6627d0a23b3ed44"
7
],
8
"id": 1,
9
"jsonrpc": "2.0"
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free