Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vincenzopalazzo/53f0ef86e6c9e29c4e54f0889a7200bf to your computer and use it in GitHub Desktop.
Save vincenzopalazzo/53f0ef86e6c9e29c4e54f0889a7200bf to your computer and use it in GitHub Desktop.
➜ ~ hal tx decode 02000000000103d52702d3b4750de9020d3c06bf3f9072c0c9aac7e16f7ad1a50d184eecf251de0000000000fdffffff132cf0d8e9fe562ad44795c54b6b577d92c36e85d116aed7a319e31e038473300000000000fdffffff671732d17fa123466902570f27b52d66d445fa490fe3791dd2e674b1085a7e950000000000fdffffff0280841e0000000000160014810d9272e9d0667da860c7f62635b57c3f1d080552270200000000002251202d745b9d03756215621ee109b2374176bcb525f296785832905de16102503ce502473044022003aefa0cf026f208dbffae91d3d6a6659cb55f94e62df8aec53cfa71b15a681302202a5b4261e78a48c848523174cbfbd92bcd4177a6b04d6acbbdb7eee06700f4c40121028c1ac4c38717ca6b2bd4b9d07aa8b5a4f7cc1bf062f633f9545ef89486bab4ee02473044022079a798ba41ebd92deb51d6978e7c02bf769816e01f713cdb2b703b6bc1173de602206a04a2ae0855a009b9fb5c0fe4c2133a1caaa41198daaf32d31afc8ad246bd5a012102a9fa96b2fb2d17e735526f2c5cf6e5a92d6b11a67a8556ad6e8bfae0924eb1cc024730440220415088e41558f13598e8bc56b8ef628dd2755155f32fa53adb3ae93b701f772e022019fcf5ada0db0c10a0f2867bb43bcf512f2fe1247d6afbcc45a17114822530a9012103c0102d5d292ea285fcc19122957a99d2af566187a43d48594dc6c0e226ecfb9f03bc0c00
{
"txid": "f6cb5d7daca25d8b6334ba1dc1cc8054f7fa0268306bb94d23ee13f90f0a4ff8",
"wtxid": "8bdd1d1ace69930cd1ac0a9c97cebee7c91b983b81817ca6ec8f3be93b5a27ce",
"size": 530,
"weight": 1151,
"vsize": 287,
"version": 2,
"locktime": 834563,
"inputs": [
{
"prevout": "de51f2ec4e180da5d17a6fe1c7aac9c072903fbf063c0d02e90d75b4d30227d5:0",
"txid": "de51f2ec4e180da5d17a6fe1c7aac9c072903fbf063c0d02e90d75b4d30227d5",
"vout": 0,
"script_sig": {
"hex": "",
"asm": ""
},
"sequence": 4294967293,
"witness": [
"3044022003aefa0cf026f208dbffae91d3d6a6659cb55f94e62df8aec53cfa71b15a681302202a5b4261e78a48c848523174cbfbd92bcd4177a6b04d6acbbdb7eee06700f4c401",
"028c1ac4c38717ca6b2bd4b9d07aa8b5a4f7cc1bf062f633f9545ef89486bab4ee"
]
},
{
"prevout": "307384031ee319a3d7ae16d1856ec3927d576b4bc59547d42a56fee9d8f02c13:0",
"txid": "307384031ee319a3d7ae16d1856ec3927d576b4bc59547d42a56fee9d8f02c13",
"vout": 0,
"script_sig": {
"hex": "",
"asm": ""
},
"sequence": 4294967293,
"witness": [
"3044022079a798ba41ebd92deb51d6978e7c02bf769816e01f713cdb2b703b6bc1173de602206a04a2ae0855a009b9fb5c0fe4c2133a1caaa41198daaf32d31afc8ad246bd5a01",
"02a9fa96b2fb2d17e735526f2c5cf6e5a92d6b11a67a8556ad6e8bfae0924eb1cc"
]
},
{
"prevout": "957e5a08b174e6d21d79e30f49fa45d4662db5270f5702694623a17fd1321767:0",
"txid": "957e5a08b174e6d21d79e30f49fa45d4662db5270f5702694623a17fd1321767",
"vout": 0,
"script_sig": {
"hex": "",
"asm": ""
},
"sequence": 4294967293,
"witness": [
"30440220415088e41558f13598e8bc56b8ef628dd2755155f32fa53adb3ae93b701f772e022019fcf5ada0db0c10a0f2867bb43bcf512f2fe1247d6afbcc45a17114822530a901",
"03c0102d5d292ea285fcc19122957a99d2af566187a43d48594dc6c0e226ecfb9f"
]
}
],
"outputs": [
{
"value": 2000000,
"script_pub_key": {
"hex": "0014810d9272e9d0667da860c7f62635b57c3f1d0805",
"asm": "OP_0 OP_PUSHBYTES_20 810d9272e9d0667da860c7f62635b57c3f1d0805",
"type": "p2wpkh",
"address": "bc1qsyxeyuhf6pn8m2rqclmzvdd40sl36zq9jn77n2"
}
},
{
"value": 141138,
"script_pub_key": {
"hex": "51202d745b9d03756215621ee109b2374176bcb525f296785832905de16102503ce5",
"asm": "OP_PUSHNUM_1 OP_PUSHBYTES_32 2d745b9d03756215621ee109b2374176bcb525f296785832905de16102503ce5",
"type": "unknown",
"address": "bc1p9469h8grw43p2cs7uyymyd6pw67t2f0jjeu9sv5sthskzqjs8njs2qj2hu"
}
}
],
"total_output_value": 2141138
➜ ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment