UNPKG

bitcoin-cli-ts

Version:

Auto-generated Bitcoin client library for bitcoind JSON-RPC API

23 lines (22 loc) 1.06 kB
"use strict"; // Auto synced from github actions. Don't change this file Object.defineProperty(exports, "__esModule", { value: true }); exports.addMultisigAddress = void 0; var tslib_1 = require("tslib"); var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request")); /** * addmultisigaddress nrequired ["key",...] ( "label" "address_type" ) * * Add an nrequired-to-sign multisignature address to the wallet. Requires a new wallet backup. * Each key is a Bitcoin address or hex-encoded public key. * This functionality is only intended for use with non-watchonly addresses. * See `importaddress` for watchonly p2sh address support. * If 'label' is specified, assign address to that label. * Note: This command is only compatible with legacy wallets. * */ function addMultisigAddress(params) { var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]); return (0, rpc_request_1.default)({ method: 'addmultisigaddress', params: methodParams }, bitcoind); } exports.addMultisigAddress = addMultisigAddress;