@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
18 lines • 831 B
JavaScript
// Auto synced from github actions. Don't change this file
import request from '../../rpc-request.js';
/**
* 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.
*
*/
export function addMultisigAddress(params) {
const { bitcoind, ...methodParams } = params;
return request({ method: 'addmultisigaddress', params: methodParams }, bitcoind);
}
//# sourceMappingURL=add-multisig-address.js.map