• Welcome to forex.pm forex forum binary options trade. Please login or sign up.
 

How to show the Op codes of scriptPubKey?

Started by Bitcoin, Feb 12, 2022, 04:20 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bitcoin

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?