Util RPCs

validateaddress

Return information about the given bitcoin address.

Method: POST

https://divi.nownodes.io

Example body (raw)

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

Example response: 200

{
    "result": {
        "isvalid": true,
        "address": "DNYKNnVNm4JodC6Qkj7QbSCHjybBNYDeNt",
        "scriptPubKey": "76a914bede6bc3b812616ffad24b7bda840a7af69b22fa88ac",
        "ismine": false
    },
    "error": null,
    "id": "curltest"
}

verifymessage

Verify a signed message

Method: POST

https://divi.nownodes.io

Example body (raw)

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

Example response: 200

{
    "result": null,
    "error": {
        "code": -5,
        "message": "Malformed base64 encoding"
    },
    "id": "curltest"
}

Last updated