safe.tx

Documentation for eth_defi.safe.tx Python module.

Gnosis Safe multisignature transaction handling.

Note

This code may be unfinished and untested.

Functions

propose_safe_transaction(safe, address, ...)

Propose a Safe transaction for Safe UI others to sign.

Exceptions

SafeTxProposalError

Error proposing Safe transaction

exception SafeTxProposalError

Bases: Exception

Error proposing Safe transaction

__init__(*args, **kwargs)
__new__(**kwargs)
add_note(note, /)

Add a note to the exception

with_traceback(tb, /)

Set self.__traceback__ to tb and return self.

propose_safe_transaction(safe, address, private_key, data, operation=0, value=0)

Propose a Safe transaction for Safe UI others to sign.

Parameters
Parma data

Contract call payload

Raises

SafeTxProposalError – If we have a problem with the transaction service

Returns

Proposed Safe transaction

Return type

safe_eth.safe.safe_tx.SafeTx