dcr

Decred (DCR)

Method: POST verifymessage

dropdown
POST

verifymessage

Verify an address is valid.

Parameters

address - string

The Decred address to use for the signature.

signature - string

The base-64 encoded signature provided by the signer.

message - string

The signed message.

Request

curl --location --request POST 'https://dcr.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "verifymessage",
"params": ["DsaczRtjC31N6XVV69qcBoyR2BEEmjRDay3", "base64-encoded signature", "message"],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": true
}