📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

btc
Bitcoin (BTC)

Method: POST signmessagewithprivkey

dropdown

方法 RPC signmessagewithprivkey 例如 Bitcoin (BTC)

POST signmessagewithprivkey

方法不允许

使用地址的私钥对消息进行签名

Parameters

privkey - 字符串,必填

用于签署消息的私钥。

message - 字符串,必填

要创建签名的消息。

Request

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


Response

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