Skip to content

Doc: how to find unused addresses #1

@coolaj86

Description

@coolaj86

Create a new address:

dash-cli -testnet getnewaddress

Get a list of all* addresses:

dash-cli -testnet getaddressesbylabel '' | jq -r 'keys[]'

* Obviously if you actually use labels (such as in the GUI), this won't give you all addresses.

Get a list of used addresses:

dash-cli -testnet listaddressbalances | jq -r 'keys[]'

Get a list of unused addresses:

dash-cli -testnet getaddressesbylabel '' |
    jq -r 'keys[]' |
    xargs -I % sh -c '
        printf %:
        dash-cli -testnet getaddresstxids "{\"addresses\":[\"%\"]}" |
            jq -c
    '

Load an address

Send 1.0 DASH to an Address

dash-cli -testnet sendtoaddress "${address}" 1.0

Get the Private Key

dash-cli -testnet dumpprivkey "${address}" > "${address}.wif"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions