Struct ethers_etherscan::Client [−][src]
pub struct Client { /* fields omitted */ }Expand description
The Etherscan.io API client.
Implementations
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(Chain::Mainnet, "API_KEY").unwrap();
let abi = client
.contract_abi("0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413".parse().unwrap())
.await.unwrap();Get Contract Source Code for Verified Contract Source Codes
let client = Client::new(Chain::Mainnet, "API_KEY").unwrap();
let meta = client
.contract_source_code("0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413".parse().unwrap())
.await.unwrap();
let code = meta.source_code();Returns the status of a contract execution
Create a new client with the correct endpoints based on the chain and provided API key
Create a new client with the correct endpoints based on the chain and API key from ETHERSCAN_API_KEY environment variable
Return the URL for the given address
Return the URL for the given transaction hash
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
Blanket Implementations
Mutably borrows from an owned value. Read more
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