diff --git a/lib/node/rpc.js b/lib/node/rpc.js index f62f8bde..905e84da 100644 --- a/lib/node/rpc.js +++ b/lib/node/rpc.js @@ -2984,17 +2984,21 @@ class RPC extends RPCBase { hex: undefined, type: Script.typesByVal[type], reqSigs: 1, + totalSigs: 1, p2sh: undefined }; if (hex) json.hex = script.toJSON(); - const [m] = script.getMultisig(); + const [m, n] = script.getMultisig(); if (m !== -1) json.reqSigs = m; + if (n !== -1) + json.totalSigs = n; + return json; }