get utx scriptPubKey to become an object

1

I'm using this python script https://github.com/sebicas/bitcoin-sniffer

When I see a utx I look at each output and find the scriptPubKey

I expected to see something like

"scriptPubKey": {
   "asm": "OP_DUP OP_HASH160 2544bedede7298fe7cedb3fcd0eb5fa73729eb64 OP_EQUALVERIFY OP_CHECKSIG",
   "hex": "76a9142544bedede7298fe7cedb3fcd0eb5fa73729eb6488ac",
   "reqSigs": 1,
   "type": "pubkeyhash",
   "addresses": [
                    "14Q4MdFGqFbP9WPzz3AXjsdxZC68rCQjj1"
                    ]
                }

but instead I see

"scriptPubKey":v��_/{�/k>//��7`HH��

Is it binary or encoded or encrypted??

How do I get the information I need from the utx?

I am looking to get asm and hex

Ben Muircroft

Posted 2017-02-08T22:53:47.030

Reputation: 408

I don't know much about python, but I've had similar issues with other libs and the solution was to declare it a string.m1xolyd1an 2017-02-09T13:22:36.757

I tried str(scriptPubKey) and v��_/{�/k>//��7HH��` is exactly what it looks likeBen Muircroft 2017-02-09T13:47:15.023

No answers