Skip to main content

decoderawtransaction RPC Method

Loading...

Updated on
Apr 30, 2025

decoderawtransaction RPC Method

Parameters

hexstring
string
REQUIRED
Loading...
iswitness
boolean
Loading...

Returns

txid
Loading...
hash
Loading...
size
Loading...
vsize
Loading...
weight
Loading...
version
Loading...
locktime
Loading...
vin
Loading...
txid
Loading...
vout
Loading...
scriptSig
Loading...
asm
Loading...
hex
Loading...
txinwitness
Loading...
hex
Loading...
sequence
Loading...
vout
Loading...
value
Loading...
n
Loading...
scriptPubKey
Loading...
asm
Loading...
desc
Loading...
hex
Loading...
address
Loading...
type
Loading...
Request
1
curl https://docs-demo.btc.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"id": 1, "jsonrpc": "2.0", "method": "decoderawtransaction", "params": ["0100000001eaefefbd1f687ef4e861804aed59ef05e743ea85f432cc146f325d759a026ce6010000006a4730440220718954e28983c875858b5a0094df4607ce2e7c6e9ffea47f3876792b01755c1202205e2adc7c32ff64aaef6d26045f96181e8741e560b6f3a8ef2f4ffd2892add656012103142355370728640592109c3d2bf5592020a6b9226303c8bc98ab2ebcadf057abffffffff02005a6202000000001976a914fe7e0711287688b33b9a5c239336c4700db34e6388ac10ca0f24010000001976a914af92ad98c7f77559f96430dfef2a6805b87b24f888ac00000000"]}'
5
Response
1
{
2
"result": {
3
"txid": "0e690d6655767c8b388e7403d13dc9ebe49b68e3bd46248c840544f9da87d1e8",
4
"hash": "0e690d6655767c8b388e7403d13dc9ebe49b68e3bd46248c840544f9da87d1e8",
5
"version": 1,
6
"size": 225,
7
"vsize": 225,
8
"weight": 900,
9
"locktime": 0,
10
"vin": [
11
{
12
"txid": "e66c029a755d326f14cc32f485ea43e705ef59ed4a8061e8f47e681fbdefefea",
13
"vout": 1,
14
"scriptSig": {
15
"asm": "30440220718954e28983c875858b5a0094df4607ce2e7c6e9ffea47f3876792b01755c1202205e2adc7c32ff64aaef6d26045f96181e8741e560b6f3a8ef2f4ffd2892add656[ALL] 03142355370728640592109c3d2bf5592020a6b9226303c8bc98ab2ebcadf057ab",
16
"hex": "4730440220718954e28983c875858b5a0094df4607ce2e7c6e9ffea47f3876792b01755c1202205e2adc7c32ff64aaef6d26045f96181e8741e560b6f3a8ef2f4ffd2892add656012103142355370728640592109c3d2bf5592020a6b9226303c8bc98ab2ebcadf057ab"
17
},
18
"sequence": 4294967295
19
}
20
],
21
"vout": [
22
{
23
"value": 0.4,
24
"n": 0,
25
"scriptPubKey": {
26
"asm": "OP_DUP OP_HASH160 fe7e0711287688b33b9a5c239336c4700db34e63 OP_EQUALVERIFY OP_CHECKSIG",
27
"desc": "addr(1QCdcH34KquWP7TrE6TNpjXHCjcADkNx9i)#c74jvp5y",
28
"hex": "76a914fe7e0711287688b33b9a5c239336c4700db34e6388ac",
29
"address": "1QCdcH34KquWP7TrE6TNpjXHCjcADkNx9i",
30
"type": "pubkeyhash"
31
}
32
},
33
{
34
"value": 48.9998184,
35
"n": 1,
36
"scriptPubKey": {
37
"asm": "OP_DUP OP_HASH160 af92ad98c7f77559f96430dfef2a6805b87b24f8 OP_EQUALVERIFY OP_CHECKSIG",
38
"desc": "addr(1H1LxwmSw6f82AeHcQvNcupXjD9nKqQXLd)#m3zmae6u",
39
"hex": "76a914af92ad98c7f77559f96430dfef2a6805b87b24f888ac",
40
"address": "1H1LxwmSw6f82AeHcQvNcupXjD9nKqQXLd",
41
"type": "pubkeyhash"
42
}
43
}
44
]
45
},
46
"error": null,
47
"id": null
48
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free