GachaPayment

Ancient8
Ancient8 Explorer

Buy Ticket

(buyTicket)

payable


_orderId

_amount

_tokenAddress


The native currency value (in Ether) to send with this transaction (ex: 0.01 to send 0.01 native currency).

Sign In

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
});