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<CompilerMetadata>;

Parameters

Type

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

Returns

let returnType: Promise<CompilerMetadata>;

The compiler metadata for the contract