getPublishedContract

Calls the "getPublishedContract" function on the contract.

Example

import { getPublishedContract } from "thirdweb/extensions/thirdweb";
const result = await getPublishedContract({
contract,
publisher: ...,
contractId: ...,
});
function getPublishedContract(
): Promise<{
bytecodeHash: `0x${string}`;
contractId: string;
implementation: string;
publishMetadataUri: string;
publishTimestamp: bigint;
}>;

Parameters

The options for the getPublishedContract function.

Type

Returns

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

The parsed result of the function call.