Protocol Kit Reference
Messages
createMessage

createMessage

Returns a Safe message ready to be signed by the owners.

Usage


_10
import { EIP712TypedData } from '@safe-global/types-kit'
_10
import { protocolKit } from './setup.ts'
_10
_10
const rawMessage: string | EIP712TypedData = 'Example message'
_10
_10
const message = protocolKit.createMessage(rawMessage)

Parameters

rawMessage

  • Type: string

The message.


_10
const message = protocolKit.createMessage(
_10
'Example message'
_10
)

Returns

SafeMessage (opens in a new tab)

The Safe message.

Was this page helpful?