resolveImplementation

Resolves the implementation address and bytecode for a given proxy contract.

Example

import { resolveImplementation } from "thirdweb";
const implementation = await resolveImplementation(contract);
function resolveImplementation(
contract: Readonly<ContractOptions<any>>,
): Promise<{ address: string; bytecode: Hex }>;

Parameters

The contract to resolve the implementation for.

Type

let contract: Readonly<ContractOptions<any>>;

Returns

let returnType: ox__Hex.Hex;

A promise that resolves to an object containing the implementation address and bytecode.