verifymessage - Dogecoin

Example code for the verifymessage JSON-RPC method. Complete guide on how to use verifymessage JSON-RPC in GetBlock Web3 documentation.

This method verifies a signed message.

  • Returns true if the signature is valid for the address and message.

  • Returns false if the signature is invalid.

  • Does not require the private key (public verification only).

  • Compatible with signatures from signmessage.

Parameters

Parameter
Type
Required
Description

address

string

Yes

The Dogecoin address that signed the message.

signature

string

Yes

The base64-encoded signature.

message

string

Yes

The original message that was signed.

Request

cURL
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "verifymessage",
    "params": ["DLGbK6mCjBT67r8wjJqCg8hkFiBYV5JquH", "H1b2c3d4e5f6g7h8i9j0...", "Hello, Dogecoin!"],
    "id": "getblock.io"
}'

Response

Response Parameters

Field
Type
Description

result

boolean

True if signature is valid, false otherwise.

error

null

Error object (null if no error).

id

string

Request identifier.

Use Case

The verifymessage method is essential for:

  • Verifying address ownership proofs

  • Authentication validation

  • Signature verification

  • Trust verification systems

  • Proof of identity checks

Error Handling

Error Code
Message
Cause

-3

Invalid address

Invalid Dogecoin address.

-5

Malformed signature

Invalid base64 signature.

403

Forbidden

Missing or invalid ACCESS-TOKEN.

Last updated

Was this helpful?