signmessagewithprivkey {disallowed} - Dash

Example code for the signmessagewithprivkey {disallowed} json-rpc method. Сomplete guide on how to use signmessagewithprivkey {disallowed} json-rpc in GetBlock.io Web3 documentation.

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"
}

Last updated

© 2019-2024 GetBlock LLC. All rights reserved ID: 21835790. Address: Belgrade, Serbia.