z_getnewaddress - BitcoinZ 2.0.7 RPC

z_getnewaddress ( type )

Returns a new shielded address for receiving payments.

With no arguments, returns a Sapling address.

Arguments:
1. "type"         (string, optional, default="sapling") The type of address. One of ["sprout", "sapling"].

Result:
"zcashaddress"    (string) The new shielded address.

Examples:
> bitcoinz-cli z_getnewaddress 
> bitcoinz-cli z_getnewaddress sapling
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "z_getnewaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8032/




Control