Message Signing
For signing messages (personal signatures), encode your data as base64:TypeScript
Data Signing
For signing transaction data or other structured data, provide a keccak256 hash:EIP-7702 Authorization Signing
For signing EIP-7702 authorizations, use the dedicated/v1/wallet/sign/eip7702 endpoint. This endpoint computes the authorization hash internally — you only need to provide the delegation parameters.
The response returns r and s as decimal strings, so you’ll need to convert them to hex for use with viem’s SignedAuthorization type:
TypeScript