bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
16 lines (15 loc) • 585 B
JavaScript
// Auto synced from github actions. Don't change this file
import { __rest } from "tslib";
import request from '../../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'.
*
*/
export function getNewAddress(params) {
var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]);
return request({ method: 'getnewaddress', params: methodParams }, bitcoind);
}