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.
Parameters
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 --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"
}'const axios = require('axios');
const data = JSON.stringify({
"jsonrpc": "2.0",
"method": "verifymessage",
"params": ["DLGbK6mCjBT67r8wjJqCg8hkFiBYV5JquH", "H1b2c3d4e5f6g7h8i9j0...", "Hello, Dogecoin!"],
"id": "getblock.io"
});
const config = {
method: 'post',
url: 'https://go.getblock.io/<ACCESS-TOKEN>/',
headers: {
'Content-Type': 'application/json'
},
data: data
};
axios(config)
.then(response => console.log(JSON.stringify(response.data)))
.catch(error => console.log(error));Response
Response Parameters
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
-3
Invalid address
Invalid Dogecoin address.
-5
Malformed signature
Invalid base64 signature.
403
Forbidden
Missing or invalid ACCESS-TOKEN.
Last updated
Was this helpful?