mwc-web3 0.15.0

Ethereum JSON-RPC client.
Documentation
#[tokio::main]
async fn main() -> web3::Result {
    let _ = env_logger::try_init();
    let http = web3::transports::Http::new("http://localhost:8545")?;
    let web3 = web3::Web3::new(web3::transports::Batch::new(http));

    let accounts = web3.eth().accounts();
    let block = web3.eth().block_number();

    let result = web3.transport().submit_batch().await?;
    println!("Result: {:?}", result);

    let accounts = accounts.await?;
    println!("Accounts: {:?}", accounts);

    let block = block.await?;
    println!("Block: {:?}", block);

    Ok(())
}