Starter Kit Reference
confirmOffChainMessage

confirmOffChainMessage

If the number of signatures collected in the Safe Transaction Service for a given Safe message hash hasn't met the threshold, it will add the signature from the connected signer.

If the number of collected signatures reaches the threshold, the Safe message will be submitted instantly.

Usage


_10
import { offchainMessageClient } from './setup.ts'
_10
_10
const messageResult = await offchainMessageClient.confirmOffChainMessage({
_10
messageHash: '0x...'
_10
})

Returns

Promise<SafeClientResult>

The result of the confirmed message.

Parameters

messageHash

  • Type: string

The hash of the message to sign.


_10
const txResult = await safeMessageClient.confirmOffChainMessage({
_10
messageHash: '0x...'
_10
})

Was this page helpful?