devicegetnewstealthaddress - Particl RPC

devicegetnewstealthaddress [label] [num_prefix_bits] [prefix_num] [bech32]
Returns a new Particl stealth address for receiving payments.
Arguments:
1. "label"             (string, optional) If specified the key is added to the address book.
2. num_prefix_bits     (int, optional) If specified and > 0, the stealth address is created with a prefix.
3. prefix_num          (int, optional) If prefix_num is not specified the prefix will be selected deterministically.
           prefix_num can be specified in base2, 10 or 16, for base 2 prefix_num must begin with 0b, 0x for base16.
           A 32bit integer will be created from prefix_num and the least significant num_prefix_bits will become the prefix.
           A stealth address created without a prefix will scan all incoming stealth transactions, irrespective of transaction prefixes.
           Stealth addresses with prefixes will scan only incoming stealth transactions with a matching prefix.
4. bech32              (bool, optional) Use Bech32 encoding, default true.

Result:
"address"              (string) The new particl stealth address

Examples:
> particl-cli devicegetnewstealthaddress "lblTestSxAddrPrefix" 3 "0b101"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "devicegetnewstealthaddress", "params": ["lblTestSxAddrPrefix", 3, "0b101"] }' -H 'content-type: text/plain;' http://127.0.0.1:51935/


This is a website, created out of frustration with uncomplete and outdated Particl Core RPC documentation online.

Particl version: 0.16.0.1

Note that the RPC is from a regtest node (for completeness), so it includes some additional calls that a regular node doesn't have.


Anon






Mnemonic