thirdweb

RobomaniacsNFT

Vanar
Vanar Explorer

Approve

(approve)

nonpayable

to

tokenId


Sign in

Use this function in your app


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