Links

setContractURI

Sets the contractURI metadata for the specified contract.

Parameters

contractAddress: string - contract address to update
contractURI: string - link to the JSON object containing metadata for the contract

Response

transactionResponse: confirmation the transaction is complete

Example

const contractURI = await existingContract.setContractURI({
contractAddress: '0x9daB8FcFe91688d360FeB9ba83F74F29dfC82287',
contractURI: 'https://ipfs.io/ipfs/QmRfModHffFedTkHSW1ZEn8f19MdPztn9WV3kY1yjaKvBy',
});
console.log(contractURI);