요금GitHub대시보드

Bitcoin Cash

verifymessage15 크레딧

Verifies a signed message

네트워크: bch

매개변수

이름타입설명
addressstringLegacy (P2PKH) address that signed the message.
signaturestringBase64-encoded signature (see signmessage).
messagestringThe signed message.

반환값

타입

boolean

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

코드 예제

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