resolveImplementation

Resolve the implementation address of a proxy contract and its bytecode

function resolveImplementation(
address: string,
provider: Provider,
): Promise<{ address: string; bytecode: string }>;

Parameters

the contract address

Type

let address: string;

RPC provider

Type

let provider: Provider;

Returns

let returnType: Promise<{ address: string; bytecode: string }>;

The implementation address and its bytecode