Bitcoin Cash
verifymessage15 Credits
Verifies a signed message
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| address | string | Legacy (P2PKH) address that signed the message. |
| signature | string | Base64-encoded signature (see signmessage). |
| message | string | The signed message. |
Rückgabewert
Typ
boolean
true if the signature is valid for the address and message.
Codebeispiele
curl https://holy-burned-sky-bch-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
-X POST \
-H 'content-type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "verifymessage",
"params": [
"1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2",
"H9L5yLFjti0QTHhPyFrZCT1V/MMnBtXKmoiKDZ78NDBjERki6ZTQZdSMCtkgoNmp17By9ItJr8o7ChX0XxY91nk=",
"my message"
]
}'