listlabels

listlabels ( "purpose" )

Returns a list of all labels or labels associated with addresses that serve a specific purpose.

Argument #1 – purpose

Type: string, optional

Specifies the address purpose to list labels for (e.g., ‘send’, ‘receive’). Providing an empty string is equivalent to not supplying this argument.

Result

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

Examples

List all labels:

bitcoinevo-cli listlabels

List labels that have receiving addresses:

bitcoinevo-cli listlabels receive

List labels that have sending addresses:

bitcoinevo-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:7332/