Skip to main content

getrawtransaction RPC Method

Loading...

Updated on
Apr 29, 2026

getrawtransaction RPC Method

Parameters

txid
string
REQUIRED
Loading...
verbose
integer
Loading...
blockhash
string
Loading...

Returns

(for verbose = 0)
object
Loading...
str
string
Loading...
(for verbose = 1)
object
Loading...
in_active_chain
boolean
Loading...
hex
string
Loading...
txid
string
Loading...
overwintered
boolean
Loading...
version
integer
Loading...
size
integer
Loading...
locktime
integer
Loading...
vin
array
Loading...
coinbase
string
Loading...
txid
string
Loading...
vout
integer
Loading...
scriptSig
object
Loading...
asm
string
Loading...
hex
string
Loading...
sequence
integer
Loading...
vout
array
Loading...
value
number
Loading...
valueZat
integer
Loading...
n
integer
Loading...
scriptPubKey
object
Loading...
asm
string
Loading...
hex
string
Loading...
type
string
Loading...
addresses
array
Loading...
str
string
Loading...
vShieldedSpend
array
Loading...
vShieldedOutput
array
Loading...
vjoinsplit
array
Loading...
orchard
object
Loading...
actions
array
Loading...
valueBalance
number
Loading...
valueBalanceZat
integer
Loading...
valueBalance
number
Loading...
valueBalanceZat
integer
Loading...
blockhash
string
Loading...
confirmations
integer
Loading...
height
integer
Loading...
blocktime
integer
Loading...
time
integer
Loading...
Request
1
curl -X POST "https://docs-demo.zec-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "getrawtransaction",
6
"params": [
7
"2a03a4110c62047af28a44ab78ec9af9d020c9b8128051b46d89c22cd34777d5",
8
0
9
],
10
"id": 1
11
}'
1
curl -X POST "https://docs-demo.zec-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "getrawtransaction",
6
"params": [
7
"2a03a4110c62047af28a44ab78ec9af9d020c9b8128051b46d89c22cd34777d5",
8
0
9
],
10
"id": 1
11
}'
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"in_active_chain": true,
6
"hex": "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0402e80300ffffffff029017fb0200000000232103d2b11b34418e65f8358fb89bee21432b6505eb860614560ce7180fa362f8d965ac20bcbe000000000017a9147d46a730d31f97b1930d3368a967c309bd4d136a8700000000",
7
"height": 1000,
8
"confirmations": 3322590,
9
"vin": [
10
{
11
"coinbase": "02e80300",
12
"sequence": 4294967295
13
}
14
],
15
"vout": [
16
{
17
"value": 0.5001,
18
"valueZat": 50010000,
19
"n": 0,
20
"scriptPubKey": {
21
"asm": "03d2b11b34418e65f8358fb89bee21432b6505eb860614560ce7180fa362f8d965 OP_CHECKSIG",
22
"hex": "2103d2b11b34418e65f8358fb89bee21432b6505eb860614560ce7180fa362f8d965ac",
23
"type": "pubkey"
24
}
25
},
26
{
27
"value": 0.125,
28
"valueZat": 12500000,
29
"n": 1,
30
"scriptPubKey": {
31
"asm": "OP_HASH160 7d46a730d31f97b1930d3368a967c309bd4d136a OP_EQUAL",
32
"hex": "a9147d46a730d31f97b1930d3368a967c309bd4d136a87",
33
"reqSigs": 1,
34
"type": "scripthash",
35
"addresses": [
36
"t3Vz22vK5z2LcKEdg16Yv4FFneEL1zg9ojd"
37
]
38
}
39
}
40
],
41
"vShieldedSpend": [],
42
"vShieldedOutput": [],
43
"vjoinsplit": [],
44
"orchard": {
45
"actions": [],
46
"valueBalance": 0,
47
"valueBalanceZat": 0
48
},
49
"valueBalance": 0,
50
"valueBalanceZat": 0,
51
"size": 131,
52
"time": 1477750705,
53
"txid": "2a03a4110c62047af28a44ab78ec9af9d020c9b8128051b46d89c22cd34777d5",
54
"overwintered": false,
55
"version": 1,
56
"locktime": 0,
57
"blockhash": "0000000b70480327694608408728c65c1f1a300bfe705b01baca0f5504092e1b",
58
"blocktime": 1477750705
59
}
60
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"in_active_chain": true,
6
"hex": "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0402e80300ffffffff029017fb0200000000232103d2b11b34418e65f8358fb89bee21432b6505eb860614560ce7180fa362f8d965ac20bcbe000000000017a9147d46a730d31f97b1930d3368a967c309bd4d136a8700000000",
7
"height": 1000,
8
"confirmations": 3322590,
9
"vin": [
10
{
11
"coinbase": "02e80300",
12
"sequence": 4294967295
13
}
14
],
15
"vout": [
16
{
17
"value": 0.5001,
18
"valueZat": 50010000,
19
"n": 0,
20
"scriptPubKey": {
21
"asm": "03d2b11b34418e65f8358fb89bee21432b6505eb860614560ce7180fa362f8d965 OP_CHECKSIG",
22
"hex": "2103d2b11b34418e65f8358fb89bee21432b6505eb860614560ce7180fa362f8d965ac",
23
"type": "pubkey"
24
}
25
},
26
{
27
"value": 0.125,
28
"valueZat": 12500000,
29
"n": 1,
30
"scriptPubKey": {
31
"asm": "OP_HASH160 7d46a730d31f97b1930d3368a967c309bd4d136a OP_EQUAL",
32
"hex": "a9147d46a730d31f97b1930d3368a967c309bd4d136a87",
33
"reqSigs": 1,
34
"type": "scripthash",
35
"addresses": [
36
"t3Vz22vK5z2LcKEdg16Yv4FFneEL1zg9ojd"
37
]
38
}
39
}
40
],
41
"vShieldedSpend": [],
42
"vShieldedOutput": [],
43
"vjoinsplit": [],
44
"orchard": {
45
"actions": [],
46
"valueBalance": 0,
47
"valueBalanceZat": 0
48
},
49
"valueBalance": 0,
50
"valueBalanceZat": 0,
51
"size": 131,
52
"time": 1477750705,
53
"txid": "2a03a4110c62047af28a44ab78ec9af9d020c9b8128051b46d89c22cd34777d5",
54
"overwintered": false,
55
"version": 1,
56
"locktime": 0,
57
"blockhash": "0000000b70480327694608408728c65c1f1a300bfe705b01baca0f5504092e1b",
58
"blocktime": 1477750705
59
}
60
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free