Struct ethers_etherscan::Client [−][src]
pub struct Client { /* fields omitted */ }Expand description
The Etherscan.io api client.
Implementations
Create a new client with the correct endpoints based on the chain.
Supported chains are ethlive, mainnet,ropsten, kovan, rinkeby, goerli
Return the URL for the given address
pub async fn submit_contract_verification(
&self,
contract: &VerifyContract
) -> Result<Response<String>>
pub async fn submit_contract_verification(
&self,
contract: &VerifyContract
) -> Result<Response<String>>
Submit Source Code for Verification
Check Source Code Verification Status with receipt received from
[Self::submit_contract_verification]
Returns the contract ABI of a verified contract
let client = Client::new("mainnet", "API_KEY").unwrap();
let abi = client
.contract_abi("0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413".parse().unwrap())
.await?;
Get Contract Source Code for Verified Contract Source Codes
let client = Client::new("mainnet", "API_KEY").unwrap();
let meta = client
.contract_source_code("0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413".parse().unwrap())
.await?;
let code = meta.source_code();Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more