agent0.ethpy.base.transactions ============================== .. py:module:: agent0.ethpy.base.transactions .. autoapi-nested-parse:: Web3 powered functions for interfacing with smart contracts. .. !! processed by numpydoc !! Functions --------- .. autoapisummary:: agent0.ethpy.base.transactions.async_wait_for_transaction_receipt Module Contents --------------- .. py:function:: async_wait_for_transaction_receipt(contract_function: pypechain.core.PypechainContractFunction, transaction_hash: hexbytes.HexBytes, timeout: float | None = None, start_latency: float = 0.01, backoff_multiplier: float = 2, validate_transaction: bool = False) -> web3.types.TxReceipt :async: Retrieve the transaction receipt asynchronously, retrying with exponential backoff. This function is copied from `web3.eth.wait_for_transaction_receipt`, but using exponential backoff and async await. This function also takes the place of `sign_transact_and_wait`, except it uses async await. This is due to agent0 using the sync version of web3py, but we wrap things in async calls. :param contract_function: The contract function that was called. :type contract_function: PypechainContractFunction :param transaction_hash: The hash of the transaction. :type transaction_hash: HexBytes :param timeout: The amount of time in seconds to time out the connection. Default is 30. :type timeout: float | None, optional :param start_latency: The starting amount of time in seconds to wait between polls. :type start_latency: float :param backoff_multiplier: The backoff factor for the exponential backoff. :type backoff_multiplier: float :param validate_transaction: Whether to validate the transaction. If True, will throw an exception if the resulting tx_receipt returned a failure status. :type validate_transaction: bool, optional :returns: The transaction receipt :rtype: TxReceipt .. !! processed by numpydoc !!