Docs

computePublishedContractAddress

Predicts the implementation address of any published contract

Example

import { computePublishedContractAddress } from "thirdweb/deploys";
const contractMetadata = await fetchPublishedContractMetadata({
client,
chain,
});
const address = await computePublishedContractAddress({
client,
chain,
contractId: "AccountFactory",
constructorParams,
});

Parameters

Returns

A promise that resolves to the predicted address of the contract.