# Public Key Hash from Address

**URL:** <https://forum.cardano.org/t/public-key-hash-from-address/97342>\
**Category:** Misc Dev Talk\
**Created:** [10 March 2022 15:11 UTC](https://forum.cardano.org/t/public-key-hash-from-address/97342 "2022-03-10T15:11:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smt0812](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@smt0812](https://forum.cardano.org/u/smt0812)\
**Post date:** [10 March 2022 15:11 UTC](https://forum.cardano.org/t/public-key-hash-from-address/97342/1 "2022-03-10T15:11:09Z")

</div>

Hello,

thats my first post here and i already searched the forum about this task, but i can not find anything suitable.

Is it possible (or better: how is it possible) to get the public key hash (PKH) just from the address? When i enter an address in cardanoscan, it displays the pkh below the address. I’m working on Smart Contracts which needs the PKH - but i dont have the PKH, i only have the address.

Does anyone has an idea about this? 🙂  
Best  
Sascha

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [10 March 2022 15:20 UTC](https://forum.cardano.org/t/public-key-hash-from-address/97342/2 "2022-03-10T15:20:04Z")

</div>

Addresses contain the hash in encoded form.

The encoding is described in:  
[https://github.com/cardano-foundation/CIPs/blob/master/CIP-0019/README.md](https://github.com/cardano-foundation/CIPs/blob/master/CIP-0019/README.md)

The used encoding (BECH32) is specified in:  
[https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki)

---

<div class="post-metadata">

**Author:** ![smt0812](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@smt0812](https://forum.cardano.org/u/smt0812)\
**Post date:** [11 March 2022 11:46 UTC](https://forum.cardano.org/t/public-key-hash-from-address/97342/3 "2022-03-11T11:46:28Z")

</div>

Thanks, that was really helpful. I got it working
