Blockchain Operations
Sign Message
Sign an arbitrary message with a Safe wallet (EIP-1271).
Sign a message using the Safe wallet. The signature is EIP-1271 compatible and can be verified on-chain.
Uses the two-step POST /v1.2/safes/operations → PUT /v1.2/safes/operations flow.
Operation Schema
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Must be "SIGN_MESSAGE" |
message | string | Yes | The message to sign |
Verifying signatures
After the operation completes, retrieve the userOpHash from the operation status and use it to verify the signature with VERIF_SIGNATURE.