Starter Kit Reference
onchainMessages

onChainMessages

This extension extends the SafeClient functionality by allowing on-chain messages.

On-chain messages are regular transactions created using the SignMessageLib (opens in a new tab) contract.

Usage


_10
import { onChainMessages } from '@safe-global/sdk-starter-kit'
_10
import { safeClient } from './setup.ts'
_10
_10
const onchainMessagesClient = safeClient.extend(onChainMessages())

Returns

SafeClient & { sendOnChainMessage }

The SafeClient instance with the extended functionality.

Was this page helpful?