safe.gnosis.io.md
1 ### Format 2 ``` 3 /// @dev Returns hash to be signed by owners. 4 /// @param to Destination address. 5 /// @param value Ether value. 6 /// @param data Data payload. 7 /// @param operation Operation type. 8 /// @param safeTxGas Fas that should be used for the safe transaction. 9 /// @param dataGas Gas costs for data used to trigger the safe transaction. 10 /// @param gasPrice Maximum gas price that should be used for this transaction. 11 /// @param gasToken Token address (or 0 if ETH) that is used for the payment. 12 /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin). 13 /// @param _nonce Transaction nonce. 14 /// @return Transaction hash. 15 function getTransactionHash( 16 address to, 17 uint256 value, 18 bytes data, 19 Enum.Operation operation, 20 uint256 safeTxGas, 21 uint256 dataGas, 22 uint256 gasPrice, 23 address gasToken, 24 address refundReceiver, 25 uint256 _nonce 26 ) 27 ``` 28 29 ### Rx 30 ``` 31 There is currently no endpoint to pull the transactions from. 32 ``` 33 34 35 ### Tx 36 ``` 37 /// @dev Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction. 38 /// Note: The fees are always transfered, even if the user transaction fails. 39 /// @param to Destination address of Safe transaction. 40 /// @param value Ether value of Safe transaction. 41 /// @param data Data payload of Safe transaction. 42 /// @param operation Operation type of Safe transaction. 43 /// @param safeTxGas Gas that should be used for the Safe transaction. 44 /// @param dataGas Gas costs for data used to trigger the safe transaction and to pay the payment transfer 45 /// @param gasPrice Gas price that should be used for the payment calculation. 46 /// @param gasToken Token address (or 0 if ETH) that is used for the payment. 47 /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin). 48 /// @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v}) 49 function execTransaction( 50 address to, 51 uint256 value, 52 bytes data, 53 Enum.Operation operation, 54 uint256 safeTxGas, 55 uint256 dataGas, 56 uint256 gasPrice, 57 address gasToken, 58 address refundReceiver, 59 bytes signatures 60 ) 61 ``` 62 63 Please check the following links for further context and details: 64 * https://github.com/gnosis/safe-contracts 65 * https://gnosis-safe.readthedocs.io/en/latest/