addMessage
Creates a new message with an initial signature.
Usage
_12import { AddMessageProps } from '@safe-global/api-kit'_12import { apiKit } from './setup.ts'_12_12const safeAddress = '0x...'_12_12const config: AddMessageProps = {_12 message: '0x...',_12 signature: '0x...',_12 safeAppId: 1 // Optional_12}_12_12await apiKit.addMessage(safeAddress, config)
Parameters
safeAddress
- Type:
string
The Safe address.
_10await apiKit.addMessage(_10 '0x...',_10 {_10 message: '0x...',_10 signature: '0x...'_10 }_10)
config.message
- Type:
string | EIP712TypedData
The raw message.
_10await apiKit.addMessage(_10 '0x...',_10 {_10 message: '0x...',_10 signature: '0x...'_10 }_10)
config.signature
- Type:
string
The message signature.
_10await apiKit.addMessage(_10 '0x...',_10 {_10 message: '0x...',_10 signature: '0x...'_10 }_10)
config.safeAppId
(Optional)
- Type:
number
The Safe App ID.
_10await apiKit.addMessage(_10 '0x...',_10 {_10 message: '0x...',_10 signature: '0x...',_10 safeAppId: 1_10 }_10)