<p>The thing is, that all the values are written in Satoshis (1BTC = 100.000.000Sats). The value is in this line: <code>&quot;value&quot;: 14748279</code> which is 14,748,279 Satoshis or 0.14748279 Bitcoin!</p>

CC BY-SA 4.0
2022-07-03T14:58:26.010Z
2022-07-03T14:58:26.010Z
zerotobtc
<p>I have this hex code:</p>
<pre><code>0200000000010369463edb561c263f1c1cd6df5a230e62f3951893e4975b37fa710598969eb8030100000000fdffffff4af5cf12b34d9f7669a146e6ab6a981b98650931ddb90846420aa03a0b46b8230300000000fdffffff810fe5d0566b662c8a6694bbbad4429adef4b7b586bcf9808d3c6f50748c6fb70100000000fdffffff02f3ae010000000000160014766cdfc2feb62daef1e8ab92393d029e07e34611770ae10000000000160014b9686f793dfcc6ebe6e120552c7f08667a1711c80247304402200484ecf7d86e39028fa3d5ecf8275629f8d5294de8a554c79bbb953914c9edda022013b1f30577f18eb988ee6b7ec810201d34f555a5d7cb334479896d3692c467610121031f1ae8de454c0ce5a239cbef1559d5004740db4b664bd3ff0623fde49142ffd50247304402202d911869548104efcb3d9657fc82df41f99edd828fa34c62a6e3a5a6f53b0892022012946e4081250724616d424ea3c05684361d7973c86fc9417cda574d230ac2f801210288e0946ff5b1c8b4ae356203256ed7d92f07288f92b09b4a47fc22527d243ad102473044022022c894a0a2c1781a6db1043c52a90b519f6c2692aa983dc73c9bc07b514788170220375bfc525e20fd044c9da198abd88b6851fca39f74668e94047ce38c8fd30ee401210288e0946ff5b1c8b4ae356203256ed7d92f07288f92b09b4a47fc22527d243ad1f9520b00
</code></pre>
<p>I can easily convert it using <a href="https://live.blockcypher.com/btc/decodetx/" rel="nofollow noreferrer">this</a>. But then I end up with this:</p>
<pre><code>{
&quot;addresses&quot;: [
    &quot;bc1qwekdlsh7kck6au0g4wfrj0gzncr7x3s3tx00ms&quot;,
    &quot;bc1qh95x77falnrwhehpyp2jclcgveapwywgwqqqzs&quot;,
    &quot;bc1qxc9v2kyal5g3qy968u86tkk29sshg2cmtqxcv8&quot;,
    &quot;bc1qt7hwj3633p555gvweh955uzt3c3njluh68krac&quot;
],
&quot;block_height&quot;: -1,
&quot;block_index&quot;: -1,
&quot;confirmations&quot;: 0,
&quot;double_spend&quot;: false,
&quot;fees&quot;: 5678,
&quot;hash&quot;: &quot;21777202a03e8b9e6e7cc84b08f1b10e0b01932eddf6132c91cb6eec555c7a45&quot;,
&quot;inputs&quot;: [
    {
        &quot;addresses&quot;: [
            &quot;bc1qxc9v2kyal5g3qy968u86tkk29sshg2cmtqxcv8&quot;
        ],
        &quot;age&quot;: 741192,
        &quot;output_index&quot;: 1,
        &quot;output_value&quot;: 116001,
        &quot;prev_hash&quot;: &quot;03b89e96980571fa375b97e4931895f3620e235adfd61c1c3f261c56db3e4669&quot;,
        &quot;script_type&quot;: &quot;pay-to-witness-pubkey-hash&quot;,
        &quot;sequence&quot;: 4294967293,
        &quot;witness&quot;: [
            &quot;304402200484ecf7d86e39028fa3d5ecf8275629f8d5294de8a554c79bbb953914c9edda022013b1f30577f18eb988ee6b7ec810201d34f555a5d7cb334479896d3692c4676101&quot;,
            &quot;031f1ae8de454c0ce5a239cbef1559d5004740db4b664bd3ff0623fde49142ffd5&quot;
        ]
    },
    {
        &quot;addresses&quot;: [
            &quot;bc1qt7hwj3633p555gvweh955uzt3c3njluh68krac&quot;
        ],
        &quot;age&quot;: 742121,
        &quot;output_index&quot;: 3,
        &quot;output_value&quot;: 500000,
        &quot;prev_hash&quot;: &quot;23b8460b3aa00a424608b9dd310965981b986aabe646a169769f4db312cff54a&quot;,
        &quot;script_type&quot;: &quot;pay-to-witness-pubkey-hash&quot;,
        &quot;sequence&quot;: 4294967293,
        &quot;witness&quot;: [
            &quot;304402202d911869548104efcb3d9657fc82df41f99edd828fa34c62a6e3a5a6f53b0892022012946e4081250724616d424ea3c05684361d7973c86fc9417cda574d230ac2f801&quot;,
            &quot;0288e0946ff5b1c8b4ae356203256ed7d92f07288f92b09b4a47fc22527d243ad1&quot;
        ]
    },
    {
        &quot;addresses&quot;: [
            &quot;bc1qt7hwj3633p555gvweh955uzt3c3njluh68krac&quot;
        ],
        &quot;age&quot;: 742128,
        &quot;output_index&quot;: 1,
        &quot;output_value&quot;: 14248279,
        &quot;prev_hash&quot;: &quot;b76f8c74506f3c8d80f9bc86b5b7f4de9a42d4babb94668a2c666b56d0e50f81&quot;,
        &quot;script_type&quot;: &quot;pay-to-witness-pubkey-hash&quot;,
        &quot;sequence&quot;: 4294967293,
        &quot;witness&quot;: [
            &quot;3044022022c894a0a2c1781a6db1043c52a90b519f6c2692aa983dc73c9bc07b514788170220375bfc525e20fd044c9da198abd88b6851fca39f74668e94047ce38c8fd30ee401&quot;,
            &quot;0288e0946ff5b1c8b4ae356203256ed7d92f07288f92b09b4a47fc22527d243ad1&quot;
        ]
    }
],
&quot;lock_time&quot;: 742137,
&quot;opt_in_rbf&quot;: true,
&quot;outputs&quot;: [
    {
        &quot;addresses&quot;: [
            &quot;bc1qwekdlsh7kck6au0g4wfrj0gzncr7x3s3tx00ms&quot;
        ],
        &quot;script&quot;: &quot;0014766cdfc2feb62daef1e8ab92393d029e07e34611&quot;,
        &quot;script_type&quot;: &quot;pay-to-witness-pubkey-hash&quot;,
        &quot;value&quot;: 110323
    },
    {
        &quot;addresses&quot;: [
            &quot;bc1qh95x77falnrwhehpyp2jclcgveapwywgwqqqzs&quot;
        ],
        &quot;script&quot;: &quot;0014b9686f793dfcc6ebe6e120552c7f08667a1711c8&quot;,
        &quot;script_type&quot;: &quot;pay-to-witness-pubkey-hash&quot;,
        &quot;value&quot;: 14748279
    }
],
&quot;preference&quot;: &quot;low&quot;,
&quot;received&quot;: &quot;2022-06-29T02:42:35.768096075Z&quot;,
&quot;relayed_by&quot;: &quot;52.201.241.48&quot;,
&quot;size&quot;: 518,
&quot;total&quot;: 14858602,
&quot;ver&quot;: 2,
&quot;vin_sz&quot;: 3,
&quot;vout_sz&quot;: 2,
&quot;vsize&quot;: 276
</code></pre>
<p>}</p>
<p>My problem is understanding this second part. I know this transaction was for 0.14248279 BTC that was sent from address = bc1qt7hwj3633p555gvweh955uzt3c3njluh68krac. But my problems are:</p>
<ol>
<li>I don't know how to calculate it based on the information above. Is there a guide that explains how to do it? What should I search for?</li>
<li>The Blockchain API is returning a different value for this transaction: <a href="https://blockchain.info/rawaddr/bc1qxc9v2kyal5g3qy968u86tkk29sshg2cmtqxcv8?limit-25" rel="nofollow noreferrer">https://blockchain.info/rawaddr/bc1qxc9v2kyal5g3qy968u86tkk29sshg2cmtqxcv8?limit-25</a> (look for &quot;21777202a03e8b9e6e7cc84b08f1b10e0b01932eddf6132c91cb6eec555c7a45&quot; and then you should see it's result value = -116001.</li>
</ol>
<p>What am I missing? Thanks!</p>

CC BY-SA 4.0
2022-06-29T09:15:17.363Z
Does this answer your question? [What are the parts of a Bitcoin transaction in segwit format?](https://bitcoin.stackexchange.com/questions/113697/what-are-the-parts-of-a-bitcoin-transaction-in-segwit-format)
RedGrittyBrick
<blockchain>
How to decipher Bitcoin Hex code?
rockstardev
# How to decipher Bitcoin Hex code?

(Asked by: username_0 on 2022-06-29)

I have this hex code:

```
0200000000010369463edb561c263f1c1cd6df5a230e62f3951893e4975b37fa710598969eb8030100000000fdffffff4af5cf12b34d9f7669a146e6ab6a981b98650931ddb90846420aa03a0b46b8230300000000fdffffff810fe5d0566b662c8a6694bbbad4429adef4b7b586bcf9808d3c6f50748c6fb70100000000fdffffff02f3ae010000000000160014766cdfc2feb62daef1e8ab92393d029e07e34611770ae10000000000160014b9686f793dfcc6ebe6e120552c7f08667a1711c80247304402200484ecf7d86e39028fa3d5ecf8275629f8d5294de8a554c79bbb953914c9edda022013b1f30577f18eb988ee6b7ec810201d34f555a5d7cb334479896d3692c467610121031f1ae8de454c0ce5a239cbef1559d5004740db4b664bd3ff0623fde49142ffd50247304402202d911869548104efcb3d9657fc82df41f99edd828fa34c62a6e3a5a6f53b0892022012946e4081250724616d424ea3c05684361d7973c86fc9417cda574d230ac2f801210288e0946ff5b1c8b4ae356203256ed7d92f07288f92b09b4a47fc22527d243ad102473044022022c894a0a2c1781a6db1043c52a90b519f6c2692aa983dc73c9bc07b514788170220375bfc525e20fd044c9da198abd88b6851fca39f74668e94047ce38c8fd30ee401210288e0946ff5b1c8b4ae356203256ed7d92f07288f92b09b4a47fc22527d243ad1f9520b00

```

I can easily convert it using [this](https://live.blockcypher.com/btc/decodetx/). But then I end up with this:

```
{
"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

```

}

My problem is understanding this second part. I know this transaction was for 0.14248279 BTC that was sent from address = bc1qt7hwj3633p555gvweh955uzt3c3njluh68krac. But my problems are:

1. I don't know how to calculate it based on the information above. Is there a guide that explains how to do it? What should I search for?
2. The Blockchain API is returning a different value for this transaction: <https://blockchain.info/rawaddr/bc1qxc9v2kyal5g3qy968u86tkk29sshg2cmtqxcv8?limit-25> (look for "21777202a03e8b9e6e7cc84b08f1b10e0b01932eddf6132c91cb6eec555c7a45" and then you should see it's result value = -116001.

What am I missing? Thanks!

**Tags:** blockchain

> **Comments:**
> **username_1**: Does this answer your question? [What are the parts of a Bitcoin transaction in segwit format?](https://bitcoin.stackexchange.com/questions/113697/what-are-the-parts-of-a-bitcoin-transaction-in-segwit-format)  

---

## 1 answers

### Answer by username_2 on 2022-07-03. Score: 1

The thing is, that all the values are written in Satoshis (1BTC = 100.000.000Sats). The value is in this line: `"value": 14748279` which is 14,748,279 Satoshis or 0.14748279 Bitcoin!


---

