python – What’s the right method of formatting pubkey_script in coinbase technology transaction?

on

|

views

and

comments


This can be a easy query for others however I am struggling attempting to know pubkey_script within the technology transaction.

On this Python code I am attempting to create a pubkey_script:

from base58 import b58decode_check

wallet_address="35XJFXPUKGXqMyXZ2jFNSMgZqpfnWNQBQV"
pubkey_script = "76a914" + b58decode_check(wallet_address[1:].hex() + "88ac"
print(pubkey_script)

output:

76a9142a09f90b21e949ccdaa85366d1bad2d841c9054a88ac

However when I attempt to decode this hex string in RPC ‘decodescript’
I get this response:

{
    "asm": "OP_DUP OP_HASH160 2a09f90b21e949ccdaa85366d1bad2d841c9054a OP_EQUALVERIFY OP_CHECKSIG",
    "desc": "addr(14qHKyu2mNDTGoq7udan1jKdhJP4u6MQGD)#c7zupad7",
    "tackle": "14qHKyu2mNDTGoq7udan1jKdhJP4u6MQGD",
    "sort": "pubkeyhash",
    "p2sh": "3D7pDTkWYGGeMbH7XEEWFxL1SwuL3fzNhu",
    "segwit": {
        "asm": "0 2a09f90b21e949ccdaa85366d1bad2d841c9054a",
        "desc": "addr(bc1q9gyljzepa9yuek4g2dndrwkjmpqujp223l6h2y)#lz4ua3xn",
        "hex": "00142a09f90b21e949ccdaa85366d1bad2d841c9054a",
        "tackle": "bc1q9gyljzepa9yuek4g2dndrwkjmpqujp223l6h2y",
        "sort": "witness_v0_keyhash",
        "p2sh-segwit": "3BbpKmKS2MdM3tJxT6nsPdvfHRVEyByVpy"
    }
}

From what I see within the decoded response, the unique tackle is nowhere to be seen. I would prefer to know what am I doing unsuitable.

Share this
Tags

Must-read

Waymo is attempting to seduce me. However an alternative choice is staring us within the face | Dave Schilling

It’s Tremendous Bowl weekend right here in America, which suggests a number of issues: copious quantities of gut-busting meals, controversial half-time present performances,...

Waymo raises $16bn to gas international robotaxi enlargement | Know-how

Self-driving automobile firm Waymo on Monday stated it raised $16bn in a funding spherical that valued the Alphabet subsidiary at $126bn.Waymo co-chief executives...

Self-driving taxis are coming to London – ought to we be anxious? | Jack Stilgoe

At the top of the nineteenth century, the world’s main cities had an issue. The streets had been flooded with manure, the unintended...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here