Hook for updating the metadata of a smart contract.
Available to use on smart contracts that implement the
The wallet initiating this transaction must have the required permissions to update the metadata, (
admin permissions required by default).
Provide your contract instance from the
useContract hook as the first argument, and
an object fitting the contract-level metadata standards of
the new metadata as the second argument, including:
stringfor the name of the smart contract (required).
stringto describe the smart contract (optional).
Fileobject containing the URL or file data of an image to associate with the contract (optional).
stringcontaining a URL to view the smart contract on your website (optional).
Mutation object that to update the metadata