GachaPayment
Ancient8Buy Ticket
(buyTicket)
payable
Use this function in your app
import { prepareContractCall, sendTransaction } from "thirdweb";
const transaction = await prepareContractCall({ contract, method: "function buyTicket(string _orderId, uint256 _amount, address _tokenAddress) payable", params: [_orderId, _amount, _tokenAddress]});const { transactionHash } = await sendTransaction({ transaction, account});