Skip to content

Instantly share code, notes, and snippets.

@siman
Last active October 26, 2017 20:00
Show Gist options
  • Save siman/0c49dbba4dc42bf4b93cf4079a79248b to your computer and use it in GitHub Desktop.
Save siman/0c49dbba4dc42bf4b93cf4079a79248b to your computer and use it in GitHub Desktop.
JSON of Litecoin tx 82e7738a7e315f4cdd674d830119bebab4016d1497cf5cc47971bdb75d3d3906
// Run from console (requires Litecoin full node with "txindex=1" in litecoin.conf):
// $ litecoin/bin/litecoin-cli getrawtransaction 82e7738a7e315f4cdd674d830119bebab4016d1497cf5cc47971bdb75d3d3906 1
//
// Where we call method "getrawtransaction" with 2 arguments:
// txid: 82e7738a7e315f4cdd674d830119bebab4016d1497cf5cc47971bdb75d3d3906
// 1 - to decode raw tx
var txJson =
{
"hex": "0100000001679daba376c12e3f6ed7cd72e19d4af98b00d0ad29d66965ea4e39a2a7e0d66e010000006c493046022100b9211248e7741851e583eeb74deba169689f02fa0282c85493b4a018edb34800022100939501466fbb41f7afa0e80c06a0e01443372d5d5f38da0a5faa482aeb1f2e2b0121023d50a25ce5ab515c2b0920ce29bf0facd17ed7d914f7ef6859b0bd91b6c5580effffffff0207d42bb9090000001976a914ac79e1772f994c04dc4bb8dabab1db69625ce64188ac0ba61c0c000000001976a91494139449bb5a7227f238dfa9d777260cf3a7bd8c88ac00000000",
"txid": "82e7738a7e315f4cdd674d830119bebab4016d1497cf5cc47971bdb75d3d3906",
"hash": "82e7738a7e315f4cdd674d830119bebab4016d1497cf5cc47971bdb75d3d3906",
"size": 227,
"vsize": 227,
"version": 1,
"locktime": 0,
"vin": [
{
"txid": "6ed6e0a7a2394eea6569d629add0008bf94a9de172cdd76e3f2ec176a3ab9d67",
"vout": 1,
"scriptSig": {
"asm": "3046022100b9211248e7741851e583eeb74deba169689f02fa0282c85493b4a018edb34800022100939501466fbb41f7afa0e80c06a0e01443372d5d5f38da0a5faa482aeb1f2e2b[ALL] 023d50a25ce5ab515c2b0920ce29bf0facd17ed7d914f7ef6859b0bd91b6c5580e",
"hex": "493046022100b9211248e7741851e583eeb74deba169689f02fa0282c85493b4a018edb34800022100939501466fbb41f7afa0e80c06a0e01443372d5d5f38da0a5faa482aeb1f2e2b0121023d50a25ce5ab515c2b0920ce29bf0facd17ed7d914f7ef6859b0bd91b6c5580e"
},
"sequence": 4294967295
}
],
"vout": [
{
"value": 417.61362951,
"n": 0,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 ac79e1772f994c04dc4bb8dabab1db69625ce641 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914ac79e1772f994c04dc4bb8dabab1db69625ce64188ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"LawvVdST5PuwsGyKJ2URKj3r56DUc8NhAH"
]
}
},
{
"value": 2.03204107,
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 94139449bb5a7227f238dfa9d777260cf3a7bd8c OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a91494139449bb5a7227f238dfa9d777260cf3a7bd8c88ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"LYiuizcGR7uTx62XbainKTSCqLjN679Q9y"
]
}
}
],
"blockhash": "37fac4afac34afaadcf14316111ac211efcc0a9d0e6ccf56d61e326e211a3053",
"confirmations": 2553,
"time": 1383505952,
"blocktime": 1383505952
};
// $ litecoin/bin/litecoin-cli getrawtransaction 105b83e44b921def5cdb2116481dad560b6d972bc0e05a79a82dd208c47b7651 1
var txJson =
{
"hex": "0100000005434aa1bb261531d12f8730cfce43c5cdbab779af8b7e125d8e97c7984d6627ab010000006b483045022058a4b145605f61d19bc55bfdfdac982c885f7590f3d5b8e8d3a7b898011c98350221009c1b37b3b1a08ce9c48c43f2ec4cc3598236028aff5c0d3a52047f1d0f715da2012103d493ec02d5537ec2308f5b05ecdd2f4db552230ba1efa5a8cda1cb8d50d36396ffffffff9460d6eba0c70e7f76223b76f1688af7b09925f8cb65588073dadcca27bdc01e000000006b48304502202cd5b966ed581b1564e33cc3be5e8a64f2f929693dfb37ce623b7e0cff07c9b9022100d1a195f1b64aadf5ca1a017d3486a6299a9a0c30276b290e5188bb822d14825701210320ed36ee88048307c648090568ec426f56a269e8ce527c0e00442d6054df0d42ffffffffa7110ec466597c85dbf845e6629d0b59ca1d3a93a185c95392969be63d6c069e000000006c493046022100e39da03760b6a88cfc1a4e657865237a093d70ee436c9f03117b6926603141ae02210090e91430665994d08dcbafe930ade5abcb587ed090f65a37e5d765b46accfba2012103b50b327ea7f05e31e15d3be4e3426bb0771e01842497e0434777fd8994154b1dffffffff9a32a88ee29726177a4652e129c45343225edd653b40fa52c6b90e8431cb28e9000000006b483045022033ec3be0dc70878af51658dff5aea47f96b8144c6302b699465baabbb5b7d13e0221008a390859634229bde04f530a948d4250311b0d48a10d29e5886c5a67dc33488a0121039a3b9e956613cf67f26b04d030c1203c422f0c1e8e9ae16ac9aafa5bd8a91f1fffffffffbdee7961791665896b6b37cea23621fefe04bb8e82b7cd95e8b6993647e4e17c000000006b483045022100f5a80e1f9012cf6d54b994ac5b5c1b71f0dca1dde4c951e9718e25bc0ed263a3022066df20128de3a55d0ae32a7db36b7eaaf339b0fa335c2c39ff8f6db42838348d012102ea0ac6470a1204b84a32f730d6af8936965503a8d955053003ddbb74d55343e2ffffffff02b8b01f00000000001976a914c042665cfee993f6ceab24164611675b5b7db29c88acc07c8d3a010000001976a914b32b0725904f6598cb39ee0e5b5b863eb603cf5f88ac00000000",
"txid": "105b83e44b921def5cdb2116481dad560b6d972bc0e05a79a82dd208c47b7651",
"hash": "105b83e44b921def5cdb2116481dad560b6d972bc0e05a79a82dd208c47b7651",
"size": 819,
"vsize": 819,
"version": 1,
"locktime": 0,
"vin": [
{
"txid": "ab27664d98c7978e5d127e8baf79b7bacdc543cecf30872fd1311526bba14a43",
"vout": 1,
"scriptSig": {
"asm": "3045022058a4b145605f61d19bc55bfdfdac982c885f7590f3d5b8e8d3a7b898011c98350221009c1b37b3b1a08ce9c48c43f2ec4cc3598236028aff5c0d3a52047f1d0f715da2[ALL] 03d493ec02d5537ec2308f5b05ecdd2f4db552230ba1efa5a8cda1cb8d50d36396",
"hex": "483045022058a4b145605f61d19bc55bfdfdac982c885f7590f3d5b8e8d3a7b898011c98350221009c1b37b3b1a08ce9c48c43f2ec4cc3598236028aff5c0d3a52047f1d0f715da2012103d493ec02d5537ec2308f5b05ecdd2f4db552230ba1efa5a8cda1cb8d50d36396"
},
"sequence": 4294967295
},
{
"txid": "1ec0bd27cadcda73805865cbf82599b0f78a68f1763b22767f0ec7a0ebd66094",
"vout": 0,
"scriptSig": {
"asm": "304502202cd5b966ed581b1564e33cc3be5e8a64f2f929693dfb37ce623b7e0cff07c9b9022100d1a195f1b64aadf5ca1a017d3486a6299a9a0c30276b290e5188bb822d148257[ALL] 0320ed36ee88048307c648090568ec426f56a269e8ce527c0e00442d6054df0d42",
"hex": "48304502202cd5b966ed581b1564e33cc3be5e8a64f2f929693dfb37ce623b7e0cff07c9b9022100d1a195f1b64aadf5ca1a017d3486a6299a9a0c30276b290e5188bb822d14825701210320ed36ee88048307c648090568ec426f56a269e8ce527c0e00442d6054df0d42"
},
"sequence": 4294967295
},
{
"txid": "9e066c3de69b969253c985a1933a1dca590b9d62e645f8db857c5966c40e11a7",
"vout": 0,
"scriptSig": {
"asm": "3046022100e39da03760b6a88cfc1a4e657865237a093d70ee436c9f03117b6926603141ae02210090e91430665994d08dcbafe930ade5abcb587ed090f65a37e5d765b46accfba2[ALL] 03b50b327ea7f05e31e15d3be4e3426bb0771e01842497e0434777fd8994154b1d",
"hex": "493046022100e39da03760b6a88cfc1a4e657865237a093d70ee436c9f03117b6926603141ae02210090e91430665994d08dcbafe930ade5abcb587ed090f65a37e5d765b46accfba2012103b50b327ea7f05e31e15d3be4e3426bb0771e01842497e0434777fd8994154b1d"
},
"sequence": 4294967295
},
{
"txid": "e928cb31840eb9c652fa403b65dd5e224353c429e152467a172697e28ea8329a",
"vout": 0,
"scriptSig": {
"asm": "3045022033ec3be0dc70878af51658dff5aea47f96b8144c6302b699465baabbb5b7d13e0221008a390859634229bde04f530a948d4250311b0d48a10d29e5886c5a67dc33488a[ALL] 039a3b9e956613cf67f26b04d030c1203c422f0c1e8e9ae16ac9aafa5bd8a91f1f",
"hex": "483045022033ec3be0dc70878af51658dff5aea47f96b8144c6302b699465baabbb5b7d13e0221008a390859634229bde04f530a948d4250311b0d48a10d29e5886c5a67dc33488a0121039a3b9e956613cf67f26b04d030c1203c422f0c1e8e9ae16ac9aafa5bd8a91f1f"
},
"sequence": 4294967295
},
{
"txid": "7ce1e4473699b6e895cdb7828ebb04fefe2136a2ce376b6b896516796179eebd",
"vout": 0,
"scriptSig": {
"asm": "3045022100f5a80e1f9012cf6d54b994ac5b5c1b71f0dca1dde4c951e9718e25bc0ed263a3022066df20128de3a55d0ae32a7db36b7eaaf339b0fa335c2c39ff8f6db42838348d[ALL] 02ea0ac6470a1204b84a32f730d6af8936965503a8d955053003ddbb74d55343e2",
"hex": "483045022100f5a80e1f9012cf6d54b994ac5b5c1b71f0dca1dde4c951e9718e25bc0ed263a3022066df20128de3a55d0ae32a7db36b7eaaf339b0fa335c2c39ff8f6db42838348d012102ea0ac6470a1204b84a32f730d6af8936965503a8d955053003ddbb74d55343e2"
},
"sequence": 4294967295
}
],
"vout": [
{
"value": 0.02076856,
"n": 0,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 c042665cfee993f6ceab24164611675b5b7db29c OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914c042665cfee993f6ceab24164611675b5b7db29c88ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"LckXYb29VcGJ8eBhrwtS26cqZAKjSXRvri"
]
}
},
{
"value": 52.77318336,
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 b32b0725904f6598cb39ee0e5b5b863eb603cf5f OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914b32b0725904f6598cb39ee0e5b5b863eb603cf5f88ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"LbZJmBYz4FWeC7GRDjB52jfE7HgRAc16AW"
]
}
}
],
"blockhash": "37fac4afac34afaadcf14316111ac211efcc0a9d0e6ccf56d61e326e211a3053",
"confirmations": 25011,
"time": 1383505952,
"blocktime": 1383505952
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment