broadcast_tx
Documentation for eth_defi.lighter.lagoon.broadcast_tx function.
- broadcast_tx(web3, hot_wallet, bound_func, description, gas_limit=1000000, *, tx_observer=None)
Sign, broadcast and wait for one transaction.
- Parameters
web3 (web3.main.Web3) – Web3 connection.
hot_wallet (eth_defi.hotwallet.HotWallet) – Transaction signer.
bound_func (web3.contract.contract.ContractFunction) – Bound contract function to execute.
description (str) – Human-readable transaction description for logs.
gas_limit (int) – Transaction gas limit.
tx_observer (Optional[Callable[[str, int, str], None]]) – Optional durable recorder called with hash, nonce and description before broadcast.
- Returns
Confirmed transaction hash in hexadecimal form.
- Return type