signHash
Signs a Safe transaction hash with the connected signer.
Usage
_20import {_20 MetaTransactionData,_20 OperationType_20} from '@safe-global/types-kit'_20import { protocolKit } from './setup.ts'_20_20const transactions: MetaTransactionData[] = [{_20 to: '0x...',_20 value: '123',_20 data: '0x',_20 operation: OperationType.Call // Optional_20}]_20const safeTransaction = await protocolKit.createTransaction({_20 transactions_20})_20const safeTransactionHash = await protocolKit.getTransactionHash(_20 safeTransaction_20)_20_20const signature = await protocolKit.signHash(safeTransactionHash)
Parameters
safeTransactionHash
- Type:
string
The Safe transaction hash to sign.
_10const signature = await protocolKit.signHash(_10 '0x...'_10)
Returns
Promise<SafeSignature>
The signature from the signer.