Sunday, December 22, 2024

transactions – Script evaluated with out error however completed with a false/empty prime stack aspect (Electrum offers error)

I feel you’ve gotten an issue along with your unlocking script for enter 1

For enter 2, your script is 0014DC6BF86354105DE2FCD9868A2B0376D6731CB92F

hex that means
00 OP_0
14 OP_PUSH20
DC6BF86354105DE2FCD9868A2B0376D6731CB92F pushed information

Which seems to be normal

Nonetheless for enter 1, I imagine you’ve gotten 160014AA6502A44947CF829B41B6D065E04E80F92897A2

hex that means
16 OP_PUSH22
0014AA6502A44947CF829B41B6D065E04E80F92897A2 pushed information

I think that preliminary byte 0x16 is spurious and should not be there. Or perhaps the prior 0x17 is spurious and is not meant to be a script size?

The pushed information seems to be prefer it was meant to be a extra regular OP_0 and a push.


This is my parsing of the transaction (which I hope is right)

blockchain> txfile tx6.hex
Studying file `tx6.hex` ...

The hexadecimal information is

[0200000002e534266acdc23f944e919ef38d9968c47f9f504c03a57897c0dc2336afec1bf50000000017160014aa6502a44947cf829b41b6d065e04e80f92897a2ffffffff3ba884bc7fc43c5bebb34ed174e2c2b0e866112660649248eef6609db0f5ac1b0b000000160014dc6bf86354105de2fcd9868a2b0376d6731cb92fffffffff01a00f00000000000017a914a7fe1a34561bf3ca04b2f00975aa518012c765298700000000]

The primary output is value 4000 Satoshi

The total transaction particulars are


  Model:................02000000 (2)
  Inputs:.................02 (2)
  Enter:1
    Earlier Transaction:.F51BECAF3623DCC09778A5034C509F7FC468998DF39E914E943FC2CD6A2634E5
    Earlier Output Index:0000 (0)
    Script Size:........17 (23)
    Unlocking Script:.....160014AA6502A44947CF829B41B6D065E04E80F92897A2
    Sequence:.............FFFFFFFF
  Enter:2
    Earlier Transaction:.1BACF5B09D60F6EE48926460261166E8B0C2E274D14EB3EB5B3CC47FBC84A83B
    Earlier Output Index:000B (11)
    Script Size:........16 (22)
    Unlocking Script:.....0014DC6BF86354105DE2FCD9868A2B0376D6731CB92F
    Sequence:.............FFFFFFFF
  Outputs:................01 (1)
  Output 1
    Worth:................A00F000000000000 (4000)
    Script Size:........17 (23)
    Locking Script:.......A914A7FE1A34561BF3CA04B2F00975AA518012C7652987
  LockTime:...............00000000 (0)
  (Calculated hash is 0A144FDBCF7476695368607E0A840B391F29E34D7579979F93FE3314C713B54B)

Bitcoin core appears to parse your transaction the identical means

C:Program FilesBitcoindaemon>  bitcoin-cli decoderawtransaction "0200000002e534266acdc23f944e919ef38d9968c47f9f504c03a57897c0dc2336afec1bf50000000017160014aa6502a44947cf829b41b6d065e04e80f92897a2ffffffff3ba884bc7fc43c5bebb34ed174e2c2b0e866112660649248eef6609db0f5ac1b0b000000160014dc6bf86354105de2fcd9868a2b0376d6731cb92fffffffff01a00f00000000000017a914a7fe1a34561bf3ca04b2f00975aa518012c765298700000000"
{
  "txid": "0a144fdbcf7476695368607e0a840b391f29e34d7579979f93fe3314c713b54b",
  "hash": "0a144fdbcf7476695368607e0a840b391f29e34d7579979f93fe3314c713b54b",
  "model": 2,
  "dimension": 169,
  "vsize": 169,
  "weight": 676,
  "locktime": 0,
  "vin": [
    {
      "txid": "f51becaf3623dcc09778a5034c509f7fc468998df39e914e943fc2cd6a2634e5",
      "vout": 0,
      "scriptSig": {
        "asm": "0014aa6502a44947cf829b41b6d065e04e80f92897a2",
        "hex": "160014aa6502a44947cf829b41b6d065e04e80f92897a2"
      },
      "sequence": 4294967295
    },
    {
      "txid": "1bacf5b09d60f6ee48926460261166e8b0c2e274d14eb3eb5b3cc47fbc84a83b",
      "vout": 11,
      "scriptSig": {
        "asm": "0 dc6bf86354105de2fcd9868a2b0376d6731cb92f",
        "hex": "0014dc6bf86354105de2fcd9868a2b0376d6731cb92f"
      },
      "sequence": 4294967295
    }
  ],
  "vout": [
    {
      "value": 0.00004000,
      "n": 0,
      "scriptPubKey": {
        "asm": "OP_HASH160 a7fe1a34561bf3ca04b2f00975aa518012c76529 OP_EQUAL",
        "desc": "addr(3H1HAvNW4qSX5jgPvrJFLaJdY2asa8U8N1)#29glrxse",
        "hex": "a914a7fe1a34561bf3ca04b2f00975aa518012c7652987",
        "address": "3H1HAvNW4qSX5jgPvrJFLaJdY2asa8U8N1",
        "type": "scripthash"
      }
    }
  ]
}

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles