getTransactionHash
Returns the Safe transaction hash of a Safe transaction.
Usage
_17import {_17 MetaTransactionData,_17 OperationType_17} from '@safe-global/types-kit'_17import { protocolKit } from './setup.ts'_17_17const transactions: MetaTransactionData[] = [{_17 to: '0x...',_17 value: '123',_17 data: '0x',_17 operation: OperationType.Call // Optional_17}]_17const safeTransaction = await protocolKit.createTransaction({_17 transactions_17})_17_17const safeTransactionHash = await protocolKit.getTransactionHash(safeTransaction)
Parameters
safeTransaction
The Safe transaction.
_10const safeTransactionHash = await protocolKit.getTransactionHash(_10 safeTransaction_10)
Returns
Promise<string>
The Safe transaction hash of the Safe transaction.