ethers-rs/ethers-addressbook
DaniPopes 16f9fab75c
fix: enable doc_cfg feature for docsrs (#2294)
2023-03-22 16:29:10 -07:00
..
src fix: enable doc_cfg feature for docsrs (#2294) 2023-03-22 16:29:10 -07:00
Cargo.toml chore(deps): bump and use workspace dependencies (#2222) 2023-03-16 12:28:35 -07:00
README.md docs: fix broken links, update documentation (#2203) 2023-02-27 13:03:17 -07:00

README.md

ethers-addressbook

A collection of commonly used smart contract addresses.

For more information, please refer to the book.

Examples

use ethers_addressbook::{contract, Chain};

let weth = contract("weth").unwrap();
let mainnet_address = weth.address(Chain::Mainnet).unwrap();
assert_eq!(mainnet_address, "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2".parse().unwrap());