bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
20 lines (19 loc) • 787 B
JavaScript
;
// Auto synced from github actions. Don't change this file
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNewAddress = void 0;
var tslib_1 = require("tslib");
var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request"));
/**
* getnewaddress ( "label" "address_type" )
*
* Returns a new Bitcoin address for receiving payments.
* If 'label' is specified, it is added to the address book
* so payments received with the address will be associated with 'label'.
*
*/
function getNewAddress(params) {
var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]);
return (0, rpc_request_1.default)({ method: 'getnewaddress', params: methodParams }, bitcoind);
}
exports.getNewAddress = getNewAddress;