createMessage
Returns a Safe message ready to be signed by the owners.
Usage
_10import { EIP712TypedData } from '@safe-global/types-kit'_10import { protocolKit } from './setup.ts'_10_10const rawMessage: string | EIP712TypedData = 'Example message'_10_10const message = protocolKit.createMessage(rawMessage)
Parameters
rawMessage
- Type:
string
The message.
_10const message = protocolKit.createMessage(_10 'Example message'_10)
Returns
SafeMessage
(opens in a new tab)
The Safe message.