z_getnewaddress - Spacecoin RPC Docs


z_getnewaddress ( type )

Returns a new shielded address for receiving payments.

With no arguments, returns a Sprout address.

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

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

Examples:
> spacecoin-cli z_getnewaddress 
> spacecoin-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:35593/


Learn more about spacecoin at spacecoin.network.
Docs generated by spacecoin v0.6.1.
Find this github repo at spacecoinSPACE/spacecoin-rpc-docs.

Spacecoin Logo



Auction











Lotto