foundry_common::abi

Function get_func_etherscan

Source
pub async fn get_func_etherscan(
    function_name: &str,
    contract: Address,
    args: &[String],
    chain: Chain,
    etherscan_api_key: &str,
) -> Result<Function>
Expand description

Given a function name, address, and args, tries to parse it as a Function by fetching the abi from etherscan. If the address is a proxy, fetches the ABI of the implementation contract.