Documentation for eth_defi.confirmation.broadcast_and_wait_transactions_to_complete function.
- broadcast_and_wait_transactions_to_complete(web3, txs, confirm_ok=True, work_around_bad_nodes=True, confirmation_block_count=0, max_timeout=datetime.timedelta(seconds=300), poll_delay=datetime.timedelta(seconds=1))
Broadcast and wait a bunch of signed transactions to confirm.
Multiple transactions can be broadcasted and confirmed in a single go, to ensure fast confirmation batches.
web3 (web3.main.Web3) – Web3
txs (List[eth_account.datastructures.SignedTransaction]) – List of Signed transactions
confirm_ok – Raise an error if any of the transaction reverts
max_timeout – How long we wait until we give up waiting transactions to complete
poll_delay – Poll timeout between the tx check loops
work_around_bad_nodes – If true try to work around issues with low quality JSON-RPC APIs like Ganache by checking if the transaction broadcast succeeded
confirmation_block_count (int) – How many blocks wait for the transaction receipt to settle. Set to zero to return as soon as we see the first transaction receipt.
Map transaction hash -> receipt
- Return type