Function ethers_core::utils::to_checksum

source ·
pub fn to_checksum(addr: &Address, chain_id: Option<u8>) -> String
Expand description

Encodes an Ethereum address to its EIP-55 checksum.

You can optionally specify an EIP-155 chain ID to encode the address using the EIP-1191 extension.