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

bch
Bitcoin Cash (BCH)

Method: POST signmessage

dropdown

方法 RPC signmessage 例如 Bitcoin Cash (BCH)

POST signmessage

方法不允许

使用地址的私钥签署消息如果钱包已加密,则需要使用 walletpassphrase 调用设置钱包密码。

Parameters

address - 字符串,必填

用于私钥的比特币地址。

message - 字符串,必填

要创建签名的消息。

Request

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


Response

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