dash

Dash (DASH)

Method: POST signmessagewithprivkey

dropdown
POST

signmessagewithprivkey

Method not allowed

Signs a message with a given private key.

Parameters

Private Key - string (base58)

The private key to sign the message with encoded in base58check using wallet import format (WIF).

Message - string

The message to sign.

Request

curl --location --request POST 'https://dash.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "signmessagewithprivkey",
"params": ["privatekeywithbas58", "my message"],
"id": "getblock.io"}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}