IBExWalletAPI
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

{
  "type": "SIGN_MESSAGE",
  "message": "Hello, world!"
}
FieldTypeRequiredDescription
typestringYesMust be "SIGN_MESSAGE"
messagestringYesThe 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.

On this page