use std::env; use web3_rust_wrapper::Web3Manager; #[tokio::main] async fn main() -> web3::Result<()> { dotenv::dotenv().ok(); let web3_http_url = "https://speedy-nodes-nyc.moralis.io/84a2745d907034e6d388f8d6/bsc/testnet"; let web3_websocket_url = "wss://speedy-nodes-nyc.moralis.io/84a2745d907034e6d388f8d6/bsc/testnet/ws"; let mut web3m: Web3Manager = Web3Manager::new(web3_http_url, web3_websocket_url, 97).await; // load acount from .env file web3m .load_account( &env::var("ACCOUNT_ADDRESS").unwrap(), &env::var("PRIVATE_TEST_KEY").unwrap(), ) .await; // print the debug information of the type println!("web3m: {:?}", web3m); Ok(()) }