getTransactionHash
Returns the Safe transaction hash of a Safe transaction that can be signed by the Safe owners.
Usage
_31interface ISafe {_31 function getTransactionHash(_31 address to,_31 uint256 value,_31 bytes data,_31 Enum.Operation operation,_31 uint256 safeTxGas,_31 uint256 baseGas,_31 uint256 gasPrice,_31 address gasToken,_31 address refundReceiver,_31 uint256 _nonce_31 ) external view returns (bytes32);_31}_31_31contract Example {_31 function example() ... {_31 (ISafe safe).getTransactionHash(_31 0x...,_31 0,_31 "0x...",_31 Enum.Operation.Call,_31 0,_31 0,_31 0,_31 0x...,_31 payable(0),_31 1_31 );_31 }_31}
Returns
- Type:
bytes32
Transaction hash.
Parameters
to
- Type:
address
Destination address.
_12(ISafe safe).getTransactionHash(_12 0x...,_12 0,_12 "0x...",_12 Enum.Operation.Call,_12 0,_12 0,_12 0,_12 0x...,_12 payable(0),_12 1_12);
value
- Type:
uint256
Native token value.
_12(ISafe safe).getTransactionHash(_12 0x...,_12 0,_12 "0x...",_12 Enum.Operation.Call,_12 0,_12 0,_12 0,_12 0x...,_12 payable(0),_12 1_12);
data
- Type:
bytes
Data payload.
_12(ISafe safe).getTransactionHash(_12 0x...,_12 0,_12 "0x...",_12 Enum.Operation.Call,_12 0,_12 0,_12 0,_12 0x...,_12 payable(0),_12 1_12);
operation
- Type:
Enum.Operation
Operation type.
_12(ISafe safe).getTransactionHash(_12 0x...,_12 0,_12 "0x...",_12 Enum.Operation.Call,_12 0,_12 0,_12 0,_12 0x...,_12 payable(0),_12 1_12);
safeTxGas
- Type:
uint256
Gas that should be used for the Safe transaction.
_12(ISafe safe).getTransactionHash(_12 0x...,_12 0,_12 "0x...",_12 Enum.Operation.Call,_12 0,_12 0,_12 0,_12 0x...,_12 payable(0),_12 1_12);
baseGas
- Type:
uint256
Gas costs for data used to trigger the Safe transaction.
_12(ISafe safe).getTransactionHash(_12 0x...,_12 0,_12 "0x...",_12 Enum.Operation.Call,_12 0,_12 0,_12 0,_12 0x...,_12 payable(0),_12 1_12);
gasPrice
- Type:
uint256
Maximum gas price that should be used for this transaction.
_12(ISafe safe).getTransactionHash(_12 0x...,_12 0,_12 "0x...",_12 Enum.Operation.Call,_12 0,_12 0,_12 0,_12 0x...,_12 payable(0),_12 1_12);
gasToken
- Type:
address
Token address (or 0x
if native token) that is used for the payment.
_12(ISafe safe).getTransactionHash(_12 0x...,_12 0,_12 "0x...",_12 Enum.Operation.Call,_12 0,_12 0,_12 0,_12 0x...,_12 payable(0),_12 1_12);
refundReceiver
- Type:
address
Address of receiver of gas payment (or 0x
if tx.origin
).
_12(ISafe safe).getTransactionHash(_12 0x...,_12 0,_12 "0x...",_12 Enum.Operation.Call,_12 0,_12 0,_12 0,_12 0x...,_12 payable(0),_12 1_12);
_nonce
- Type:
uint256
Transaction nonce.
_12(ISafe safe).getTransactionHash(_12 0x...,_12 0,_12 "0x...",_12 Enum.Operation.Call,_12 0,_12 0,_12 0,_12 0x...,_12 payable(0),_12 1_12);