Skip to main content

getrawtransaction RPC Method

Returns the raw transaction data.

Updated on
Feb 04, 2026

Parameters

txid
string
REQUIRED

The transaction id

verbose
integer

Default 0. 0 for hex-encoded data, 1 for JSON object

blockhash
string

The block in which to look for the transaction

Returns

(for verbose = 0):
object

Response when verbose is 0. The JSON-RPC body includes result (hex-encoded serialized transaction), error, and id.

result
string

The serialized, hex-encoded transaction data

error
object | null

JSON-RPC error object when the request failed, or null on success

id
integer

The JSON-RPC request identifier

(for verbose = 1):
object

Response when verbose is 1 (the default). The JSON-RPC body includes result (decoded transaction object), error, and id.

result
object

The transaction object

txid
string

The transaction id

hash
string

The transaction hash

version
integer

The transaction version

size
integer

The transaction size

locktime
integer

The transaction locktime

vin
array

A JSON array. Each element in the array serves as a transaction's input vector (vin).

txid
string

The transaction id

vout
integer

The output number

scriptSig
object

The script's signature

asm
string

The script's public key in the form of a string

hex
string

The hex-encoded witness data

sequence
integer

The sequence number of the script

vout
array

A JSON array containing tx information

value
number

The value in BTC

n
integer

The output index

scriptPubKey
object

A JSON object containing information about the PubKey script

asm
string

The script public key in the form of string

hex
string

The hex of the script's public key in string format

reqSigs
integer

Number of required signatures

type
string

The type of script, e.g. pubkeyhash, multisig

addresses
array

Array of Bitcoin Cash addresses

hex
string

The serialized, hex-encoded transaction data

blockhash
string

The block hash

confirmations
integer

The number of confirmations

time
integer

The block time expressed in UNIX epoch time

blocktime
integer

Same as time

error
object | null

JSON-RPC error object when the request failed, or null on success

id
integer

The JSON-RPC request identifier

Request
Response
1
{
2
"result": {
3
"txid": "a7cf70e0152b45651928ef3feb381d21e94e8bd4c53757cabf485eaff58125ed",
4
"hash": "a7cf70e0152b45651928ef3feb381d21e94e8bd4c53757cabf485eaff58125ed",
5
"version": 1,
6
"size": 374,
7
"locktime": 0,
8
"vin": [
9
{
10
"txid": "8af0cad7bbd319d945c00c68bc7a43f0e43d142a36bba7726b68633f0745553b",
11
"vout": 0,
12
"scriptSig": {
13
"asm": "3045022100b471cc71a02556bb1f14298c3b7bb6019e408c78bd6512a1bccfbda30b53cf5302200d3892b80c03fa3d75f67a0e69d23771c33773100dfe6bed0748ceca94bd916b[ALL|FORKID] 02b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523e",
14
"hex": "483045022100b471cc71a02556bb1f14298c3b7bb6019e408c78bd6512a1bccfbda30b53cf5302200d3892b80c03fa3d75f67a0e69d23771c33773100dfe6bed0748ceca94bd916b412102b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523e"
15
},
16
"sequence": 4294967295
17
},
18
{
19
"txid": "2d300dd7b49283c105112011750f2184b858002863edc20ae36590e1f71a22db",
20
"vout": 1,
21
"scriptSig": {
22
"asm": "3045022100c44369fabee6fd81cdd75b14891e00ff7cd438502bec13112897b483509d7c4102201a571fc92dc6fff59a0216169acf3794d1bb63be1e03a1d1f7fe1ce6a605bc3c[ALL|FORKID] 02b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523e",
23
"hex": "483045022100c44369fabee6fd81cdd75b14891e00ff7cd438502bec13112897b483509d7c4102201a571fc92dc6fff59a0216169acf3794d1bb63be1e03a1d1f7fe1ce6a605bc3c412102b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523e"
24
},
25
"sequence": 4294967295
26
}
27
],
28
"vout": [
29
{
30
"value": 0.00320253,
31
"n": 0,
32
"scriptPubKey": {
33
"asm": "OP_DUP OP_HASH160 c62b2b5e1e96415634c02823239309e955b64828 OP_EQUALVERIFY OP_CHECKSIG",
34
"hex": "76a914c62b2b5e1e96415634c02823239309e955b6482888ac",
35
"reqSigs": 1,
36
"type": "pubkeyhash",
37
"addresses": [
38
"bitcoincash:qrrzk267r6tyz435cq5zxgunp854tdjg9qvjfwd0vy"
39
]
40
}
41
},
42
{
43
"value": 0.00318222,
44
"n": 1,
45
"scriptPubKey": {
46
"asm": "OP_DUP OP_HASH160 612ff813f1a3f10481975a0c43c480e67bbcc013 OP_EQUALVERIFY OP_CHECKSIG",
47
"hex": "76a914612ff813f1a3f10481975a0c43c480e67bbcc01388ac",
48
"reqSigs": 1,
49
"type": "pubkeyhash",
50
"addresses": [
51
"bitcoincash:qpsjl7qn7x3lzpypjadqcs7ysrn8h0xqzvnx9vjn2r"
52
]
53
}
54
}
55
],
56
"hex": "01000000023b5545073f63686b72a7bb362a143de4f0437abc680cc045d919d3bbd7caf08a000000006b483045022100b471cc71a02556bb1f14298c3b7bb6019e408c78bd6512a1bccfbda30b53cf5302200d3892b80c03fa3d75f67a0e69d23771c33773100dfe6bed0748ceca94bd916b412102b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523effffffffdb221af7e19065e30ac2ed63280058b884210f7511201105c18392b4d70d302d010000006b483045022100c44369fabee6fd81cdd75b14891e00ff7cd438502bec13112897b483509d7c4102201a571fc92dc6fff59a0216169acf3794d1bb63be1e03a1d1f7fe1ce6a605bc3c412102b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523effffffff02fde20400000000001976a914c62b2b5e1e96415634c02823239309e955b6482888ac0edb0400000000001976a914612ff813f1a3f10481975a0c43c480e67bbcc01388ac00000000",
57
"blockhash": "000000000000000001709ea8074b4df1342f49483f2b2fd52131bc309ffcdc91",
58
"confirmations": 22998,
59
"time": 1756386098,
60
"blocktime": 1756386098
61
},
62
"error": null,
63
"id": 1
64
}
1
{
2
"result": {
3
"txid": "a7cf70e0152b45651928ef3feb381d21e94e8bd4c53757cabf485eaff58125ed",
4
"hash": "a7cf70e0152b45651928ef3feb381d21e94e8bd4c53757cabf485eaff58125ed",
5
"version": 1,
6
"size": 374,
7
"locktime": 0,
8
"vin": [
9
{
10
"txid": "8af0cad7bbd319d945c00c68bc7a43f0e43d142a36bba7726b68633f0745553b",
11
"vout": 0,
12
"scriptSig": {
13
"asm": "3045022100b471cc71a02556bb1f14298c3b7bb6019e408c78bd6512a1bccfbda30b53cf5302200d3892b80c03fa3d75f67a0e69d23771c33773100dfe6bed0748ceca94bd916b[ALL|FORKID] 02b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523e",
14
"hex": "483045022100b471cc71a02556bb1f14298c3b7bb6019e408c78bd6512a1bccfbda30b53cf5302200d3892b80c03fa3d75f67a0e69d23771c33773100dfe6bed0748ceca94bd916b412102b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523e"
15
},
16
"sequence": 4294967295
17
},
18
{
19
"txid": "2d300dd7b49283c105112011750f2184b858002863edc20ae36590e1f71a22db",
20
"vout": 1,
21
"scriptSig": {
22
"asm": "3045022100c44369fabee6fd81cdd75b14891e00ff7cd438502bec13112897b483509d7c4102201a571fc92dc6fff59a0216169acf3794d1bb63be1e03a1d1f7fe1ce6a605bc3c[ALL|FORKID] 02b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523e",
23
"hex": "483045022100c44369fabee6fd81cdd75b14891e00ff7cd438502bec13112897b483509d7c4102201a571fc92dc6fff59a0216169acf3794d1bb63be1e03a1d1f7fe1ce6a605bc3c412102b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523e"
24
},
25
"sequence": 4294967295
26
}
27
],
28
"vout": [
29
{
30
"value": 0.00320253,
31
"n": 0,
32
"scriptPubKey": {
33
"asm": "OP_DUP OP_HASH160 c62b2b5e1e96415634c02823239309e955b64828 OP_EQUALVERIFY OP_CHECKSIG",
34
"hex": "76a914c62b2b5e1e96415634c02823239309e955b6482888ac",
35
"reqSigs": 1,
36
"type": "pubkeyhash",
37
"addresses": [
38
"bitcoincash:qrrzk267r6tyz435cq5zxgunp854tdjg9qvjfwd0vy"
39
]
40
}
41
},
42
{
43
"value": 0.00318222,
44
"n": 1,
45
"scriptPubKey": {
46
"asm": "OP_DUP OP_HASH160 612ff813f1a3f10481975a0c43c480e67bbcc013 OP_EQUALVERIFY OP_CHECKSIG",
47
"hex": "76a914612ff813f1a3f10481975a0c43c480e67bbcc01388ac",
48
"reqSigs": 1,
49
"type": "pubkeyhash",
50
"addresses": [
51
"bitcoincash:qpsjl7qn7x3lzpypjadqcs7ysrn8h0xqzvnx9vjn2r"
52
]
53
}
54
}
55
],
56
"hex": "01000000023b5545073f63686b72a7bb362a143de4f0437abc680cc045d919d3bbd7caf08a000000006b483045022100b471cc71a02556bb1f14298c3b7bb6019e408c78bd6512a1bccfbda30b53cf5302200d3892b80c03fa3d75f67a0e69d23771c33773100dfe6bed0748ceca94bd916b412102b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523effffffffdb221af7e19065e30ac2ed63280058b884210f7511201105c18392b4d70d302d010000006b483045022100c44369fabee6fd81cdd75b14891e00ff7cd438502bec13112897b483509d7c4102201a571fc92dc6fff59a0216169acf3794d1bb63be1e03a1d1f7fe1ce6a605bc3c412102b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523effffffff02fde20400000000001976a914c62b2b5e1e96415634c02823239309e955b6482888ac0edb0400000000001976a914612ff813f1a3f10481975a0c43c480e67bbcc01388ac00000000",
57
"blockhash": "000000000000000001709ea8074b4df1342f49483f2b2fd52131bc309ffcdc91",
58
"confirmations": 22998,
59
"time": 1756386098,
60
"blocktime": 1756386098
61
},
62
"error": null,
63
"id": 1
64
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free