<p>It is the address you would have to give to someone in order for them to pay to that script.</p>

CC BY-SA 3.0
2014-06-04T09:40:50.147Z
2014-06-04T09:40:50.147Z
Pieter Wuille
<p>Every time i call decodescript method with any input it returns p2sh </p>

<pre><code>bitcoin-cli decodescript 1234
{
    "asm" : "[error]",
    "type" : "nonstandard",
    "p2sh" : "2NBbRKQ1VhLw8xeL82ynK4VUUJs9z2pj7Ca"
}
</code></pre>

<p>i know that p2sh is pay to script hash address, but address of what ? the given script ?</p>

<p2sh><json-rpc>
What's p2sh in decodescript RPC method ouput?
Farghaly
# What's p2sh in decodescript RPC method ouput?

(Asked by: username_0 on 2014-06-03)

Every time i call decodescript method with any input it returns p2sh 
bitcoin-cli decodescript 1234
{
    "asm" : "[error]",
    "type" : "nonstandard",
    "p2sh" : "2NBbRKQ1VhLw8xeL82ynK4VUUJs9z2pj7Ca"
}

i know that p2sh is pay to script hash address, but address of what ? the given script ?

**Tags:** p2sh, json-rpc


---

## 1 answers

### Answer by username_1 on 2014-06-04. Score: 1

It is the address you would have to give to someone in order for them to pay to that script.


---

