async fn check_onchain_balance(&mut self) -> anyhow::Result<()> {
        tracing::info!("Master Account: Checking onchain balance");
        let master_wallet = &mut self.pool.master_wallet;
        let ethereum = master_wallet.ethereum(&self.config.l1_rpc_address).await?;
        let eth_balance = ethereum.balance().await?;
        if eth_balance < U256::from(MIN_MASTER_ACCOUNT_BALANCE) {
            anyhow::bail!(
                "ETH balance on {:x} is too low to safely perform the loadtest: {} - at least {} is required",
                ethereum.client().sender_account(),
                format_eth(eth_balance),
                format_eth(U256::from(MIN_MASTER_ACCOUNT_BALANCE))
            );
        }
        tracing::info!(
            "Master Account {} L1 balance is {}",
            self.pool.master_wallet.address(),
            format_eth(eth_balance)
        );
        LOADTEST_METRICS
            .master_account_balance
            .set(eth_balance.as_u128() as f64);

        Ok(())
    }
Verifies that onchain ETH balance for the main account is sufficient to run the loadtest.
core/tests/loadnext/src/executor.rs