What's p2sh in decodescript RPC method ouput?

2

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 ?

Farghaly

Posted 2014-06-03T22:56:57.440

Reputation: 849

Answers

1

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

Pieter Wuille

Posted 2014-06-03T22:56:57.440

Reputation: 54 032