1

wondering whats the simplest way to get the pkh for nami-wallet? Is it possible through the webapp?

2 Answers 2

0

I would be interested in getting the holdings of that pkh as a list after getting the pkh, but I think this is a user input type of deal.

I don't think you can get the pkh for a random wallet on nami without other information such as the wallet address (I mean how is it gonna know which address your requesting the pkh for?).

Also if your using smart contracts, I think whatever the solution is would work any address on the chain regardless of which wallet they are using.

4
  • maybe not the pkh or public key of any specific address, but an account-level public key should be an option
    – zhekson
    Feb 22, 2022 at 18:12
  • Hi @zhekson can you please clarify what you mean by account level pk and how this differs from the pk of an address?
    – KryptoKing
    Feb 22, 2022 at 20:26
  • Scroll down to the "HD Sequential wallets (à la BIP-44)" here
    – zhekson
    Feb 22, 2022 at 20:28
  • Thanks Ill take a look at it
    – KryptoKing
    Feb 22, 2022 at 20:37
0

The easiest way I can think of (so far) is:

  1. Grab your bech32 address from the Nami wallet interface (e.g. addr_***)
  2. Inspect that address with the cardano-address tool with this command:
echo <YOUR_ADDRESS_HERE addr_...> | cardano-address address inspect
  1. You should be able to find the hex hash in the output under the property spending_key_hash

ALTERNATIVELY, there's another easy way where you dont need to download cardano-address. By using the cardano-address demo here Cardano Address Inspector.

  • Unfortunately they have disabled the hex output option, not sure why
  • But I realized that they do print the cardano-address output into the console... So if you open the browser inspect tool and hit Inspect again, you should be able to find the hex hash with the key spending_key_hash

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.