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