thirdweb

Marketplace V3

Polygon
polygonscandexguru

Replace Extension

(replaceExtension)

nonpayable

_extension

Input should be passed in JSON format - Ex: { "metadata": { "name": "...", "metadataURI": "...", "implementation": "0x..." }, "functions": [{ "functionSelector": "0", "functionSignature": "..." }] }

Sign In

Use this function in your app


import { prepareContractCall, sendTransaction } from "thirdweb"; const transaction = await prepareContractCall({ contract, method: "function replaceExtension(((string name, string metadataURI, address implementation) metadata, (bytes4 functionSelector, string functionSignature)[] functions) _extension)", params: [_extension] }); const { transactionHash } = await sendTransaction({ transaction, account });