forex.pm forex forum binary options trade - Binance - Сryptocurrency exchanges - bitcoin-cli decodescript wrong output
  • Welcome to forex.pm forex forum binary options trade. Please login or sign up.
 

bitcoin-cli decodescript wrong output

Started by Bitcoin, Mar 30, 2022, 07:18 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bitcoin

bitcoin-cli decodescript wrong output

If I try to get info in genesis block, there is 1 tx:



  "scriptPubKey": {
    "asm": "0496b538e853519c726a2c91e61ec11600ae1390813a627c66fb8be7947be63c52da7589379515d4e0a604f8141781e62294721166bf621e73a82cbf2342c858ee OP_CHECKSIG",
    "hex": "410496b538e853519c726a2c91e61ec11600ae1390813a627c66fb8be7947be63c52da7589379515d4e0a604f8141781e62294721166bf621e73a82cbf2342c858eeac",
    "type": "pubkey"
  }


bitcoin-cli decodescript gives me this address:



{
  "asm": "0496b538e853519c726a2c91e61ec11600ae1390813a627c66fb8be7947be63c52da7589379515d4e0a604f8141781e62294721166bf621e73a82cbf2342c858ee OP_CHECKSIG",
  "type": "pubkey",
  "p2sh": "3BgShGBxRQrczVD6Ftj4z51FfgJ761FdSX"
}


However any block chain explorers show address 12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX.
The same problem with 2, 3, 4... blocks. Why?


Source: bitcoin-cli decodescript wrong output