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: string }>;

Parameters

The contract to resolve the implementation for.

Type

let contract: Readonly<ContractOptions<any>>;

Returns

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

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