diff --git a/rpcserver.go b/rpcserver.go index b98ff0fc..9793429c 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -747,6 +747,7 @@ func handleDecodeScript(s *rpcServer, cmd btcjson.Cmd) (interface{}, error) { ReqSigs: reqSigs, Type: scriptType.String(), Addresses: addresses, + P2sh: hex.EncodeToString(btcutil.Hash160(script)), } return reply, nil }