confirmation

Documentation for eth_defi.confirmation Python module.

Transaction broadcasting, block confirmation and completion monitoring.

  • Wait for multiple transactions to be confirmed and read back the results from the blockchain

  • The safest way to get transactions out is to use wait_and_broadcast_multiple_nodes()

Functions

broadcast_and_wait_transactions_to_complete(...)

Broadcast and wait a bunch of signed transactions to confirm.

broadcast_transactions(web3, txs[, ...])

Broadcast and wait a bunch of signed transactions to confirm.

check_nonce_mismatch(web3, txs)

Check for nonce re-use issues.

wait_and_broadcast_multiple_nodes(web3, txs)

Try to broadcast transactions through multiple nodes.

wait_transactions_to_complete(web3, txs[, ...])

Watch multiple transactions executed at parallel.

Exceptions

BroadcastFailure

Could not broadcast a transaction for some reason.

ConfirmationTimedOut

We exceeded the transaction confirmation timeout.

NonceMismatch

Chain has a different nonce than we expect.