Bitcoin

Transaction – The script was evaluated without errors, but completed with a false/empty top stack element (Electrum throws an error).

There seems to be a problem with the unlock script on input 1.

For input 2your script is 0014DC6BF86354105DE2FCD9868A2B0376D6731CB92F

witchmeaning
00OP_0
14OP_PUSH20
DC6BF86354105DE2FCD9868A2B0376D6731CB92Fpushed data

what appears to be standard

But for input Onei believe you did 160014AA6502A44947CF829B41B6D065E04E80F92897A2

witchmeaning
16OP_PUSH22
0014AA6502A44947CF829B41B6D065E04E80F92897A2pushed data

I believe the initial byte 0x16 is false and should not be there. Or maybe the previous 0x17 is false and not the length of the script.

The data pushed appears to be intended to be more normal data. OP_0 And push.


Here’s the breakdown of the deal (I hope it’s accurate):

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

The hexadecimal data is

(0200000002e534266acdc23f944e919ef38d9968c47f9f504c03a57897c0dc2336afec1bf50000000017160014aa6502a44947cf829b41b6d065e04e80f92897a2ffffffff3ba884bc7fc43c5bebb34ed174e2c2b0e866112660649248eef6609db0f5ac1b0b000000160014dc6bf86354105de2fcd9868a2b0376d6731cb92fffffffff01a00f00000000000017a914a7fe1a34561bf3ca04b2f00975aa518012c765298700000000)

The first output is worth 4000 Satoshi

The full transaction details are


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

Bitcoin Core seems to parse transactions the same way.

C:\Program Files\Bitcoin\daemon>  bitcoin-cli decoderawtransaction "0200000002e534266acdc23f944e919ef38d9968c47f9f504c03a57897c0dc2336afec1bf50000000017160014aa6502a44947cf829b41b6d065e04e80f92897a2ffffffff3ba884bc7fc43c5bebb34ed174e2c2b0e866112660649248eef6609db0f5ac1b0b000000160014dc6bf86354105de2fcd9868a2b0376d6731cb92fffffffff01a00f00000000000017a914a7fe1a34561bf3ca04b2f00975aa518012c765298700000000"

  "txid": "0a144fdbcf7476695368607e0a840b391f29e34d7579979f93fe3314c713b54b",
  "hash": "0a144fdbcf7476695368607e0a840b391f29e34d7579979f93fe3314c713b54b",
  "version": 2,
  "size": 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

Back to top button