QuantumUnlocked

Ethereum
etherscanblockscout
Code Snippets

Approve

(approve)

nonpayable

spender

id


Connect Wallet

Use this function in your app


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