getCompilerMetadata

Down the compiled metadata from thirdweb contract api and format it

Example

import { getCompilerMetadata, getContract } from "thirdweb/contracts";
const contract = getContract({
address: "0x...",
chain: ethereum,
client: "",
});
const metadata = await getCompilerMetadata(contract);
function getCompilerMetadata(
contract: Readonly<ContractOptions<[]>>,
): Promise<PublishedMetadata>;

Parameters

Type

let contract: Readonly<ContractOptions<[]>>;

Returns

let returnType: Promise<PublishedMetadata>;