Sign an EIP-191 message
Sign EIP-712 typed data
chainId consistent with the application protocol. The separate chain argument selects the account and validator context used to package the signature.
Choose a signer set
Passundefined to use the account’s configured owners. To sign with an enabled session key, pass that session explicitly:
Deployed and undeployed accounts
For an undeployed smart account, the SDK wraps the result with ERC-6492 deployment data. The verifying application must support ERC-6492 to validate that signature. Deployed accounts return the normal ERC-1271-compatible envelope.EOA account mode does not produce packed smart-account signatures through
these methods. Call the EOA’s viem signing method directly when the verifier
expects an EOA signature.