z_getnewaddress - Zcash 6.2.0 RPC

z_getnewaddress ( type )

z_getnewaddress is DISABLED and will be removed in a future release.
Please use z_getnewaccount and z_getaddressforaccount instead.
You can restart the node with `-allowdeprecated=z_getnewaddress`
to re-enable this method during its deprecation period.
See https://zcash.github.io/zcash/user/deprecation.html for more information.

Returns a new shielded address for receiving payments.

With no arguments, this currently returns a Sapling address (but that
should not be relied on).
Generating a Sprout address is not allowed after Canopy has activated.

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

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

Examples:
> zcash-cli z_getnewaddress 
> zcash-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:8232/


License of the docs is MIT (see zcash repo), license of the scripts and webpage is also MIT (github repo)

Note it uses a mainnet zcash node