Skip to main content
Produces an ERC-1271-compatible signature over a plain message.

Request

Parameters

`0x${string}`
required
Hex-encoded message bytes.
`0x${string}`
required
Smart-account address. Must match the connected account.

Returns

0x${string}, the signature, packed for ERC-1271 verification.

Errors

Verification

viem handles ERC-1271 (and ERC-6492 for undeployed accounts) automatically.