This page uses machine translation from English, which may contain errors or unclear language. For the most accurate information, please see the original English version. Some content may be in the original English due to frequent updates. Help us improve this page's translation by joining our effort on Crowdin. (Crowdin translation page, Contributing guide)
[Miscellaneous] kaia_recoverFromMessage
This method recovers or verifies an ECDSA signature signed by a private key associated with the given address.
The signature has to be signed by the private key that constitutes the account, e.g. "natural" private key of a Legacy account, one of the keys of a WeightedMultisig account.
Both EIP-191 and KIP-97 signatures are accepted.
JSONRPC: kaia_recoverFromMessage
Request
- application/json
Body
Array [
- IntegerBlockNumber
- HexadecimalBlockNumber
- BlockTag
]
params
undefined[]
required
Address 20-byte DATA
Address.
Message N-byte DATA
A Message.
Signature Signature (string)
The signature.
BlockNumberOrTag
object
oneOf
the block number with type integer
number
the block number with type hexadecimal
string
the block tag [latest, pending, earliest]
string