sendOffChainMessage
If the threshold
of the connected Safe is greater than 1, it will create the Safe message and store it in the Safe Transaction Service to collect the signatures from the Safe owners.
If the threshold
of the connected Safe is 1, the Safe message will be submitted and be valid immediately.
If the Safe account is not deployed, it will be deployed when this method is called and funds will be required in the connected signer account.
Usage
_10import { offchainMessageClient } from './setup.ts'_10_10const messageResult = await offchainMessageClient.sendOffChainMessage({_10 message: 'I am the owner of this Safe'_10})
Returns
Promise<SafeClientResult>
The result of the off-chain message sent.
Parameters
message
- Type:
string | EIP712TypedData
The message to submit.
_10const messageResult = await offchainMessageClient.sendOffChainMessage({_10 message: 'abc'_10})