broadcast_tx

Documentation for eth_defi.lighter.lagoon.broadcast_tx function.

broadcast_tx(web3, hot_wallet, bound_func, description, gas_limit=1000000)

Sign, broadcast and wait for a transaction.

Parameters
  • web3 (web3.main.Web3) – Web3 connection.

  • hot_wallet (eth_defi.hotwallet.HotWallet) – Transaction signer.

  • bound_func – Bound contract function.

  • description (str) – Human-readable transaction description.

  • gas_limit (int) – Gas limit.

Returns

Transaction hash hex string.

Return type

str