offChainMessages
This extension extends the SafeClient
functionality by allowing off-chain messages.
Off-chain messages are the default option used by Safe.
Usage
_10import { offChainMessages } from '@safe-global/sdk-starter-kit'_10import { safeClient } from './setup.ts'_10_10const offchainMessagesClient = safeClient.extend(offChainMessages())
Returns
SafeClient & { sendOffChainMessage, confirmOffChainMessage, getPendingOffChainMessages }
The SafeClient
instance with the extended functionality.