verifyEIP6492Signature
Uses a the universal validator defined here to verify a signature in the ERC-6492 format.
Usage
Returns
Promise<boolean>
Returns whether or not the signature is valid for the given Signer and message hash
Parameters
VerifyEIP6492SignatureParams
-
signer: Address
The address of the Signer of the message (e.g. the smart account address)
-
hash: Hash
The hash of the message being verified (e.g. the result of
hashMessage("hello world")
) -
signature: Hex
The signature to verify (e.g. the result of
signMessage("hello world")
) -
client: Client
The viem client used to make an
eth_call
to validate the signature. This client should be connected to the same chain that the undeployed account is on