ContractMetadata
Handles metadata for a Contract
Read and update metadata for this contract
const contract = await sdk.getContract("{{contract_address}}");const metadata = await contract.metadata.get();await contract.metadata.set({ name: "My Contract", description: "My contract description",});
class ContractMetadata< TContract extends BaseContract, TSchema extends IGenericSchemaType,> implements DetectableFeature {}
function constructor( contractWrapper: ContractWrapper<TContract>, schema: TSchema,
function set(metadata: input<TSchema["input"]>): Promise<TResult>;
Preparable
You can also prepare the transaction without executing it by calling set.prepare()
with same arguments. Learn more
function update( metadata: Partial<input<TSchema["input"]>>,): Promise<TResult>;
Preparable
You can also prepare the transaction without executing it by calling update.prepare()
with same arguments. Learn more