<p>I assume that you're talking about a Pay-to-pubkeyhash (P2PKH) transaction, which is the most common transaction type on the network at this time.</p>

<p>The pubkey script of a P2PKH transaction output contains the hash of the public key (what you call <code>HASH160</code>):<br>
<code>OP_DUP OP_HASH160 &lt;PubkeyHash&gt; OP_EQUALVERIFY OP_CHECKSIG</code></p>

<p>Said PubkeyHash can be converted into the address by prepending two zeroes and expressing it in base58check, a more human readable format.</p>

CC BY-SA 3.0
2017-10-01T21:05:16.560Z
2017-10-02T04:08:56.070Z
2017-10-02T04:08:56.070Z
Murch
<p>I've stumbled across a transition on blockchain.info where the output address was displayed even though the output address had never been used in any other transaction.</p>

<p>How can blockchain.info know the address when the transaction script contains only the HASH160 of the output address, not the output address itself?</p>

<address><hash><script><p2pkh>
How can blockchain.info show the output address of a transaction when the output address has never been used in any other transaction?
Robbo
# How can blockchain.info show the output address of a transaction when the output address has never been used in any other transaction?

(Asked by: username_0 on 2017-10-01)

I've stumbled across a transition on blockchain.info where the output address was displayed even though the output address had never been used in any other transaction.

How can blockchain.info know the address when the transaction script contains only the HASH160 of the output address, not the output address itself?

**Tags:** address, hash, script, p2pkh


---

## 1 answers

### Answer by username_1 on 2017-10-01. Score: 1

I assume that you're talking about a Pay-to-pubkeyhash (P2PKH) transaction, which is the most common transaction type on the network at this time.

The pubkey script of a P2PKH transaction output contains the hash of the public key (what you call `HASH160`):  
`OP_DUP OP_HASH160 <PubkeyHash> OP_EQUALVERIFY OP_CHECKSIG`

Said PubkeyHash can be converted into the address by prepending two zeroes and expressing it in base58check, a more human readable format.


---

