Documentation exported from Syscoin Core 4.4.1

listlabels (4.4.1 RPC)

blockchain

control

evo

evowallet

governance

governancewallet

masternode

mining

network

rawtransactions

signer

syscoin

syscoinwallet

util

wallet

zmq

listlabels ( "purpose" )

Returns the list of all labels, or labels that are assigned to addresses with a specific purpose.

Arguments:
1. purpose    (string, optional) Address purpose to list labels for ('send','receive'). An empty string is the same as not providing this argument.

Result:
[           (json array)
  "str",    (string) Label name
  ...
]

Examples:

List all labels
> syscoin-cli listlabels 

List labels that have receiving addresses
> syscoin-cli listlabels receive

List labels that have sending addresses
> syscoin-cli listlabels send

As a JSON-RPC call
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "listlabels", "params": [receive]}' -H 'content-type: text/plain;' http://127.0.0.1:8370/