lockMetadata
Lock previously created metadata. This is only possible if the metadata has been marked as dynamic while creating it, and will prevent any further updates. This operation is irrevertible. Only the creator of the metadata is allowed to lock it.
The nftContactId
can be supplied as an argument or through the TOKEN_CONTRACT
environment variable.
This only works on v2 smart contracts and no equivalent feature exists for v1.
As with all new SDK api methods, this call should be wrapped in execute and passed a signing method. For a guide showing how to make a contract call with mintbase-js click here
lockMetadata(args: UpdateMetadataArgs): NearContractCall
lockMetadata
takes a single argument of type LockMetadataArgs
React example
Example usage of mint method in a hypothetical React component:
LockMetadataComponent.ts
Last updated