Blockchain

如何破譯比特幣十六進制程式碼?

  • July 3, 2022

我有這個十六進制程式碼:

0200000000010369463edb561c263f1c1cd6df5a230e62f3951893e4975b37fa710598969eb8030100000000fdffffff4af5cf12b34d9f7669a146e6ab6a981b98650931ddb90846420aa03a0b46b8230300000000fdffffff810fe5d0566b662c8a6694bbbad4429adef4b7b586bcf9808d3c6f50748c6fb70100000000fdffffff02f3ae010000000000160014766cdfc2feb62daef1e8ab92393d029e07e34611770ae10000000000160014b9686f793dfcc6ebe6e120552c7f08667a1711c80247304402200484ecf7d86e39028fa3d5ecf8275629f8d5294de8a554c79bbb953914c9edda022013b1f30577f18eb988ee6b7ec810201d34f555a5d7cb334479896d3692c467610121031f1ae8de454c0ce5a239cbef1559d5004740db4b664bd3ff0623fde49142ffd50247304402202d911869548104efcb3d9657fc82df41f99edd828fa34c62a6e3a5a6f53b0892022012946e4081250724616d424ea3c05684361d7973c86fc9417cda574d230ac2f801210288e0946ff5b1c8b4ae356203256ed7d92f07288f92b09b4a47fc22527d243ad102473044022022c894a0a2c1781a6db1043c52a90b519f6c2692aa983dc73c9bc07b514788170220375bfc525e20fd044c9da198abd88b6851fca39f74668e94047ce38c8fd30ee401210288e0946ff5b1c8b4ae356203256ed7d92f07288f92b09b4a47fc22527d243ad1f9520b00

我可以使用它輕鬆轉換它。但後來我得到了這個:

{
"addresses": [
   "bc1qwekdlsh7kck6au0g4wfrj0gzncr7x3s3tx00ms",
   "bc1qh95x77falnrwhehpyp2jclcgveapwywgwqqqzs",
   "bc1qxc9v2kyal5g3qy968u86tkk29sshg2cmtqxcv8",
   "bc1qt7hwj3633p555gvweh955uzt3c3njluh68krac"
],
"block_height": -1,
"block_index": -1,
"confirmations": 0,
"double_spend": false,
"fees": 5678,
"hash": "21777202a03e8b9e6e7cc84b08f1b10e0b01932eddf6132c91cb6eec555c7a45",
"inputs": [
   {
       "addresses": [
           "bc1qxc9v2kyal5g3qy968u86tkk29sshg2cmtqxcv8"
       ],
       "age": 741192,
       "output_index": 1,
       "output_value": 116001,
       "prev_hash": "03b89e96980571fa375b97e4931895f3620e235adfd61c1c3f261c56db3e4669",
       "script_type": "pay-to-witness-pubkey-hash",
       "sequence": 4294967293,
       "witness": [
           "304402200484ecf7d86e39028fa3d5ecf8275629f8d5294de8a554c79bbb953914c9edda022013b1f30577f18eb988ee6b7ec810201d34f555a5d7cb334479896d3692c4676101",
           "031f1ae8de454c0ce5a239cbef1559d5004740db4b664bd3ff0623fde49142ffd5"
       ]
   },
   {
       "addresses": [
           "bc1qt7hwj3633p555gvweh955uzt3c3njluh68krac"
       ],
       "age": 742121,
       "output_index": 3,
       "output_value": 500000,
       "prev_hash": "23b8460b3aa00a424608b9dd310965981b986aabe646a169769f4db312cff54a",
       "script_type": "pay-to-witness-pubkey-hash",
       "sequence": 4294967293,
       "witness": [
           "304402202d911869548104efcb3d9657fc82df41f99edd828fa34c62a6e3a5a6f53b0892022012946e4081250724616d424ea3c05684361d7973c86fc9417cda574d230ac2f801",
           "0288e0946ff5b1c8b4ae356203256ed7d92f07288f92b09b4a47fc22527d243ad1"
       ]
   },
   {
       "addresses": [
           "bc1qt7hwj3633p555gvweh955uzt3c3njluh68krac"
       ],
       "age": 742128,
       "output_index": 1,
       "output_value": 14248279,
       "prev_hash": "b76f8c74506f3c8d80f9bc86b5b7f4de9a42d4babb94668a2c666b56d0e50f81",
       "script_type": "pay-to-witness-pubkey-hash",
       "sequence": 4294967293,
       "witness": [
           "3044022022c894a0a2c1781a6db1043c52a90b519f6c2692aa983dc73c9bc07b514788170220375bfc525e20fd044c9da198abd88b6851fca39f74668e94047ce38c8fd30ee401",
           "0288e0946ff5b1c8b4ae356203256ed7d92f07288f92b09b4a47fc22527d243ad1"
       ]
   }
],
"lock_time": 742137,
"opt_in_rbf": true,
"outputs": [
   {
       "addresses": [
           "bc1qwekdlsh7kck6au0g4wfrj0gzncr7x3s3tx00ms"
       ],
       "script": "0014766cdfc2feb62daef1e8ab92393d029e07e34611",
       "script_type": "pay-to-witness-pubkey-hash",
       "value": 110323
   },
   {
       "addresses": [
           "bc1qh95x77falnrwhehpyp2jclcgveapwywgwqqqzs"
       ],
       "script": "0014b9686f793dfcc6ebe6e120552c7f08667a1711c8",
       "script_type": "pay-to-witness-pubkey-hash",
       "value": 14748279
   }
],
"preference": "low",
"received": "2022-06-29T02:42:35.768096075Z",
"relayed_by": "52.201.241.48",
"size": 518,
"total": 14858602,
"ver": 2,
"vin_sz": 3,
"vout_sz": 2,
"vsize": 276

}

我的問題是理解第二部分。我知道這筆交易是從地址 = bc1qt7hwj3633p555gvweh955uzt3c3njluh68krac 發送的 0.14248279 BTC。但我的問題是:

  1. 我不知道如何根據上面的資訊計算它。是否有說明如何操作的指南?我應該搜尋什麼?
  2. 區塊鏈 API 正在為此交易返回一個不同的值:https : //blockchain.info/rawaddr/bc1qxc9v2kyal5g3qy968u86tkk29sshg2cmtqxcv8?limit-25(查找“21777202a03e8b9e6e7cc84b08f1b10e0b01932eddf6132c91cb6ec515c7a”然後你應該看到它。

我錯過了什麼?謝謝!

問題是,所有的值都是用 Satoshis 寫的(1BTC = 100.000.000Sats)。價值在這一行:"value": 14748279即 14,748,279 Satoshis 或 0.14748279 比特幣!

https: //blockchain.info/rawaddr/38UmuUqPCrFmQo4khkomQwZ4VbY2nZMJ67? limit-25在此處輸入預格式化文本

引用自:https://bitcoin.stackexchange.com/questions/114265