Util RPCs

validateaddress

Return information about the given bitcoin address.

Method: POST

https://dcr.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "validateaddress",
    "params": [
        "DsmCWHCbq2qnWLxefUraZ1yV85GF2spqSTh"
    ]
}

Example response: 200

{
    "jsonrpc": "1.0",
    "result": {
        "isvalid": true,
        "address": "DsmCWHCbq2qnWLxefUraZ1yV85GF2spqSTh"
    },
    "error": null,
    "id": "curltest"
}

verifymessage

Verify a signed message

Method: POST

https://dcr.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "verifymessage",
    "params": [
        "DsmCWHCbq2qnWLxefUraZ1yV85GF2spqSTh",
        "signature",
        "my message"
    ]
}

Example response: 200

{
    "jsonrpc": "1.0",
    "result": null,
    "error": {
        "code": -32700,
        "message": "Malformed base64 encoding: illegal base64 data at input byte 8"
    },
    "id": "curltest"
}

Last updated