fetchPublishedContract

Fetches the published contract based on the provided options.

Example

const publishedContract = await fetchPublishedContract({
publisherAddress: "0x1234",
contractName: "MyContract",
version: "1.0.0",
client: client,
});
function fetchPublishedContract(
options: FetchPublishedContractOptions,
): Promise<{
bytecodeHash: `0x${string}`;
contractId: string;
implementation: string;
publishMetadataUri: string;
publishTimestamp: bigint;
}>;

Parameters

The options for fetching the published contract.

Type

let options: FetchPublishedContractOptions;

Returns

let returnType: Promise<{
bytecodeHash: `0x${string}`;
contractId: string;
implementation: string;
publishMetadataUri: string;
publishTimestamp: bigint;
}>;

The published contract.