Predicts the implementation address of any published contract
import { computePublishedContractAddress } from "thirdweb/deploys"; const address = await computePublishedContractAddress({ client, chain, contractId: "AccountFactory", constructorParams,});
function computePublishedContractAddress(args: { chain: Readonly<ChainOptions & { rpc: string }>; client: ThirdwebClient; constructorParams?: Record<string, unknown>; contractId: string; publisher?: string; salt?: string; version?: string;}): Promise<string>;
The arguments for predicting the address of a published contract.
let args: { chain: Readonly<ChainOptions & { rpc: string }>; client: ThirdwebClient; constructorParams?: Record<string, unknown>; contractId: string; publisher?: string; salt?: string; version?: string;};
let returnType: Promise<string>;
A promise that resolves to the predicted address of the contract.