MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetNewAddress

Function GetNewAddress

src/bitcoin-cli.cpp:1529–1533  ·  view source on GitHub ↗

* Call RPC getnewaddress. * @returns getnewaddress response as a UniValue object. */

Source from the content-addressed store, hash-verified

1527 * @returns getnewaddress response as a UniValue object.
1528 */
1529static UniValue GetNewAddress()
1530{
1531 DefaultRequestHandler rh;
1532 return ConnectAndCallRPC(&rh, "getnewaddress", /* args=*/{}, RpcWalletName(gArgs));
1533}
1534
1535/**
1536 * Check bounds and set up args for RPC generatetoaddress params: nblocks, address, maxtries.

Callers 1

CommandLineRPCFunction · 0.85

Calls 2

ConnectAndCallRPCFunction · 0.85
RpcWalletNameFunction · 0.85

Tested by

no test coverage detected