thirdweb

NitroPurchasables

Vanar
Vanar Explorer

Add Items

(addItems)

nonpayable

_assets

Input should be passed in JSON format - Ex: [{ "name": "...", "price": "0" }]

Sign in

Use this function in your app


import { prepareContractCall, sendTransaction } from "thirdweb"; const transaction = await prepareContractCall({ contract, method: "function addItems((string name, uint256 price)[] _assets)", params: [_assets] }); const { transactionHash } = await sendTransaction({ transaction, account });