Skip to main content

bb_getTx RPC Method - Blockbook

Returns transaction object for the transaction hash.

Updated on
Aug 09, 2026
Please note that this RPC method requires the BCH Blockbook JSON-RPC enabled on your Quicknode endpoint.

Parameters

txid
string
REQUIRED

The transaction id

Returns

result
object

The details of the transaction

txid
string

The transaction id

version
integer

The transaction version

lockTime
integer

The earliest time (block height or Unix timestamp) when the transaction can be added to the blockchain

vin
array

An array of transaction inputs

sequence
integer

The input sequence number

n
integer

The input index within the transaction

isAddress
boolean

Whether this input is associated with an address

coinbase
string

The coinbase data for coinbase transactions (present only in coinbase inputs)

vout
array

An array of transaction outputs

value
string

The value of this output in satoshis

n
integer

The output index within the transaction

spent
boolean

Whether this output has been spent

hex
string

The raw scriptPubKey in hexadecimal format

addresses
array

The addresses receiving this output

isAddress
boolean

Whether this output is associated with an address

blockHash
string

The hash of the block that includes this transaction

blockHeight
integer

The block height where this transaction was included

confirmations
integer

The number of confirmations since this transaction was included in a block

blockTime
integer

The unix timestamp when the block was confirmed

size
integer

The size of the transaction in bytes

value
string

The total value of the transaction in satoshis

valueIn
string

The total input value of the transaction in satoshis

fees
string

The transaction fee in satoshis

hex
string

The raw hexadecimal representation of the transaction

Request
Response
1
{
2
"id": 1,
3
"result": {
4
"txid": "0xd5ab71b461328b84ade881cdb8fb923ba9254abf5e290f8f7b3299082fb5218f",
5
"vin": [
6
{
7
"n": 0,
8
"addresses": [
9
"0xEA60B5FAbf224041119e29cE4e75513BC73F5Edf"
10
],
11
"isAddress": true
12
}
13
],
14
"vout": [
15
{
16
"value": "0",
17
"n": 0,
18
"addresses": [
19
"0x3a05E5d33d7Ab3864D53aaEc93c8301C1Fa49115"
20
],
21
"isAddress": true
22
}
23
],
24
"blockHash": "0x043976bc1e8efaf2f4b0e241dfa3ba9f42aa5a1df8ae6548e1f9a9cd256ca9d7",
25
"blockHeight": 19441691,
26
"confirmations": 2920152,
27
"blockTime": 1710521975,
28
"value": "0",
29
"fees": "7608183561313657",
30
"tokenTransfers": [
31
{
32
"type": "ERC20",
33
"from": "0xEA60B5FAbf224041119e29cE4e75513BC73F5Edf",
34
"to": "0xa230285d5683C74935aD14c446e137c8c8828438",
35
"contract": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
36
"name": "Dai Stablecoin",
37
"symbol": "DAI",
38
"decimals": 18,
39
"value": "9800000000000000000000"
40
}
41
],
42
"ethereumSpecific": {
43
"status": 1,
44
"nonce": 59,
45
"gasLimit": 1000000,
46
"gasUsed": 163171,
47
"gasPrice": "46627057267",
48
"data": "0x870876230000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000430000000000000000000000000000000000000300000000000000000000000000000000000000000000021342520d5fec20000000000000000000000000000000000000000000000000000000000000000c350000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000",
49
"parsedData": {
50
"methodId": "0x87087623",
51
"name": "Bridge ERC20",
52
"function": "bridgeERC20(address, address, uint256, uint32, bytes)",
53
"params": [
54
{
55
"type": "address",
56
"values": [
57
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
58
]
59
},
60
{
61
"type": "address",
62
"values": [
63
"0x4300000000000000000000000000000000000003"
64
]
65
},
66
{
67
"type": "uint256",
68
"values": [
69
"9800000000000000000000"
70
]
71
},
72
{
73
"type": "uint32",
74
"values": [
75
"800000"
76
]
77
},
78
{
79
"type": "bytes",
80
"values": [
81
""
82
]
83
}
84
]
85
}
86
},
87
"addressAliases": {
88
"0xEA60B5FAbf224041119e29cE4e75513BC73F5Edf": {
89
"Type": "ENS",
90
"Alias": "luccastera.eth"
91
}
92
}
93
},
94
"jsonrpc": "2.0"
95
}
1
{
2
"id": 1,
3
"result": {
4
"txid": "0xd5ab71b461328b84ade881cdb8fb923ba9254abf5e290f8f7b3299082fb5218f",
5
"vin": [
6
{
7
"n": 0,
8
"addresses": [
9
"0xEA60B5FAbf224041119e29cE4e75513BC73F5Edf"
10
],
11
"isAddress": true
12
}
13
],
14
"vout": [
15
{
16
"value": "0",
17
"n": 0,
18
"addresses": [
19
"0x3a05E5d33d7Ab3864D53aaEc93c8301C1Fa49115"
20
],
21
"isAddress": true
22
}
23
],
24
"blockHash": "0x043976bc1e8efaf2f4b0e241dfa3ba9f42aa5a1df8ae6548e1f9a9cd256ca9d7",
25
"blockHeight": 19441691,
26
"confirmations": 2920152,
27
"blockTime": 1710521975,
28
"value": "0",
29
"fees": "7608183561313657",
30
"tokenTransfers": [
31
{
32
"type": "ERC20",
33
"from": "0xEA60B5FAbf224041119e29cE4e75513BC73F5Edf",
34
"to": "0xa230285d5683C74935aD14c446e137c8c8828438",
35
"contract": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
36
"name": "Dai Stablecoin",
37
"symbol": "DAI",
38
"decimals": 18,
39
"value": "9800000000000000000000"
40
}
41
],
42
"ethereumSpecific": {
43
"status": 1,
44
"nonce": 59,
45
"gasLimit": 1000000,
46
"gasUsed": 163171,
47
"gasPrice": "46627057267",
48
"data": "0x870876230000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000430000000000000000000000000000000000000300000000000000000000000000000000000000000000021342520d5fec20000000000000000000000000000000000000000000000000000000000000000c350000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000",
49
"parsedData": {
50
"methodId": "0x87087623",
51
"name": "Bridge ERC20",
52
"function": "bridgeERC20(address, address, uint256, uint32, bytes)",
53
"params": [
54
{
55
"type": "address",
56
"values": [
57
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
58
]
59
},
60
{
61
"type": "address",
62
"values": [
63
"0x4300000000000000000000000000000000000003"
64
]
65
},
66
{
67
"type": "uint256",
68
"values": [
69
"9800000000000000000000"
70
]
71
},
72
{
73
"type": "uint32",
74
"values": [
75
"800000"
76
]
77
},
78
{
79
"type": "bytes",
80
"values": [
81
""
82
]
83
}
84
]
85
}
86
},
87
"addressAliases": {
88
"0xEA60B5FAbf224041119e29cE4e75513BC73F5Edf": {
89
"Type": "ENS",
90
"Alias": "luccastera.eth"
91
}
92
}
93
},
94
"jsonrpc": "2.0"
95
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free