thirdweb

Buy Tickets

(BuyTickets)

nonpayable

_tokenAddress

_numOfTicketsToBuy


Connect Wallet

Use this function in your app


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