thirdweb

Hunnys Seasons

Polygon
polygonscandexguru
Code Snippets

Add Minter

(addMinter)

nonpayable

account


Connect Wallet

Use this function in your app


import { prepareContractCall, sendTransaction } from "thirdweb"; const transaction = await prepareContractCall({ contract, method: "function addMinter(address account)", params: [account] }); const { transactionHash } = await sendTransaction({ transaction, account });