create_web3_config#
API documentation for tradeexecutor.cli.bootstrap.create_web3_config Python function.
- create_web3_config(json_rpc_binance, json_rpc_polygon, json_rpc_avalanche, json_rpc_ethereum, json_rpc_arbitrum, json_rpc_anvil, gas_price_method=None, unit_testing=False, simulate=False, mev_endpoint_disabled=False)[source]#
Create Web3 connection to the live node we are executing against.
- Parameters:
simulate (bool) – Set up a mainnet fork with Anvil for transaction simulation.
mev_endpoint_disabled (bool) – MEV endpoints do not work when deploying contracts with Forge.
gas_price_method (Optional[GasPriceMethod]) –
unit_testing (bool) –
- Return web3:
Connect to any passed JSON RPC URL
- Return type: