Protocol Kit Reference
Transactions
getTransactionHash

getTransactionHash

Returns the Safe transaction hash of a Safe transaction.

Usage


_17
import {
_17
MetaTransactionData,
_17
OperationType
_17
} from '@safe-global/types-kit'
_17
import { protocolKit } from './setup.ts'
_17
_17
const transactions: MetaTransactionData[] = [{
_17
to: '0x...',
_17
value: '123',
_17
data: '0x',
_17
operation: OperationType.Call // Optional
_17
}]
_17
const safeTransaction = await protocolKit.createTransaction({
_17
transactions
_17
})
_17
_17
const safeTransactionHash = await protocolKit.getTransactionHash(safeTransaction)

Parameters

safeTransaction

The Safe transaction.


_10
const safeTransactionHash = await protocolKit.getTransactionHash(
_10
safeTransaction
_10
)

Returns

Promise<string>

The Safe transaction hash of the Safe transaction.

Was this page helpful?