forex.pm forex forum binary options trade

 Сryptocurrency exchanges => Binance - Сryptocurrency exchanges => Topic started by: Bitcoin on Feb 12, 2022, 04:20 am

Title: How to show the Op codes of scriptPubKey?
Post by: Bitcoin on Feb 12, 2022, 04:20 am
How to show the Op codes of scriptPubKey?

I've been learning about bitcoin and creating raw transactions. In the example I saw in a video when they use the command decoderawtransaction it outputs:


...
 "scriptPubKey": {
        "asm": "OP_HASH160 f20fe211102535e3c37bb0e659099387ddc035b5 OP_EQUAL",
        "hex": "a914f20fe211102535e3c37bb0e659099387ddc035b587",
...

But when I do it, it outputs:


...
 "scriptPubKey": {
        "asm": "0 b9ae3f60f9d4f5f22f81ae36803ff71f0d9a1b0d",
        "hex": "0014b9ae3f60f9d4f5f22f81ae36803ff71f0d9a1b0d",
...

How do I make it show the Op Codes?


Source: How to show the Op codes of scriptPubKey? (https://bitcoin.stackexchange.com/questions/112357/how-to-show-the-op-codes-of-scriptpubkey)