Sunday, December 22, 2024

Import WIF key for P2PKH into Bitcoin Core descriptor pockets

ah.. so let me make the step-by-step

  1. getdescriptorinfo “pkh(cSTHGbKgKLCGDRRn5AgtS7L4KHkqmdBau4nsEw8ckAzXV784bgeR)”

end result:

{
  "descriptor": "pkh(030264ff3c978d2845efd78ff3092650ff80e49a95bebe2fe2f0e9328f72e31799)#kfn7yc4w",
  "checksum": "h9ya7gkd",
  "isrange": false,
  "issolvable": true,
  "hasprivatekeys": true
}

vital data is "checksum": "h9ya7gkd"

  1. importdescriptors ‘[{“desc”:”pkh(cSTHGbKgKLCGDRRn5AgtS7L4KHkqmdBau4nsEw8ckAzXV784bgeR)#h9ya7gkd”,”timestamp”:”now”}]’

At this level I can see my tackle below receiving addresses

  1. getaddressinfo mv9u2iuhXL86Y4JKHazEYvAzAXvbt5bwwo

end result

{
  "tackle": "mv9u2iuhXL86Y4JKHazEYvAzAXvbt5bwwo",
  "scriptPubKey": "76a914a08e6d3854c35052dd64757f423c1bf91326c5b888ac",
  "ismine": true,
  "solvable": true,
  "desc": "pkh([a08e6d38]030264ff3c978d2845efd78ff3092650ff80e49a95bebe2fe2f0e9328f72e31799)#ywkyykha",
  "parent_desc": "pkh(030264ff3c978d2845efd78ff3092650ff80e49a95bebe2fe2f0e9328f72e31799)#kfn7yc4w",
  "iswatchonly": false,
  "isscript": false,
  "iswitness": false,
  "pubkey": "030264ff3c978d2845efd78ff3092650ff80e49a95bebe2fe2f0e9328f72e31799",
  "iscompressed": true,
  "ischange": false,
  "timestamp": 1706106032,
  "hdkeypath": "m",
  "hdseedid": "0000000000000000000000000000000000000000",
  "hdmasterfingerprint": "a08e6d38",
  "labels": [
    ""
  ]
}

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles