user12049: 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 ?

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

12049: <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>
 208: <p>It is the address you would have to give to someone in order for them to pay to that script.</p>
