{"id":57673,"library":"ethers","title":"Ethers","description":"A complete Ethereum and Celo Rust library for interacting with the Ethereum blockchain.","status":"active","version":"2.0.14","language":"rust","source_language":null,"source_url":"https://github.com/gakonst/ethers-rs","tags":["ethereum","blockchain","web3","smart-contracts"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nethers = \"2.0.14\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add ethers","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Provider","correct":"use ethers::prelude::*;"}],"quickstart":{"code":"use ethers::prelude::*;\n\n#[tokio::main]\nasync fn main() -> Result<(), Box<dyn std::error::Error>> {\n    let provider = Provider::<Http>::try_from(\"https://mainnet.infura.io/v3/YOUR_API_KEY\")?;\n    let block_number = provider.get_block_number().await?;\n    println!(\"Current block: {}\", block_number);\n    Ok(())\n}","lang":"rust","description":"Connects to Ethereum mainnet and fetches the current block number."},"warnings":[{"fix":"Add tokio as a dependency and enable the 'rustls' or 'openssl' feature for HTTPS.","message":"Requires an async runtime (tokio) and feature flags for transports","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'blockchain':14,16 'celo':6 'complet':3 'contract':20 'ether':1 'ethereum':4,13,15 'interact':10 'librari':8 'rust':7 'smart':19 'smart-contract':18 'web3':17","created_at":"2026-06-16T15:53:16.109815+00:00","updated_at":"2026-06-16T15:53:16.109815+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/gakonst/ethers-rs","github":"https://github.com/gakonst/ethers-rs","docs":"https://docs.rs/ethers/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking","crypto"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}