PreiseGitHubDashboard

Litecoin

verifymessage15 Credits

Verifies a signed message

Netzwerk: litecoin

Parameter

NameTypBeschreibung
addressstringLegacy (P2PKH) address that signed the message.
signaturestringBase64-encoded signature (see signmessage).
messagestringThe signed message.

Rückgabewert

Typ

boolean

true if the signature is valid for the address and message.

Codebeispiele

curl https://holy-burned-sky-litecoin-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"
  ]
}'