#
Placing a Bet
When a user creates a bet, depending on the game type, the SendBets button should appear.
When the button is pressed, an Ether transaction is created. To send it to the smart contract, the user must sign it in their wallet first.
After signing, the transaction is sent to the blockchain.
A process dialog appears, and there is a waiting time before the transaction is confirmed.
#
Transaction Fees
Transaction fees are paid by the user. To cover them, the user must have MATIC tokens in their wallet.
The transaction costs approximately 80,000 gas, with an average cost of $0.007.
True Casino uses a high-quality gas prediction provider, optimizing the fee structure for fast transactions.
Fee Structure:
- True Casino uses EIP-1559 fees.
- Base fees are set to double the current block price. This ensures execution even if base fees spike.
- Setting higher base fees does not increase costs, as the difference between the block's base fee and the transaction’s base fee is refunded.
- Priority fees are estimated to have a 99% chance of inclusion in the next block.
MetaMask Fee Information
The fee estimate shown in MetaMask or other wallets may not match the actual cost.
This happens due to the high base fee settings, a large portion of which is refunded.
#
Transaction Execution Time
Typically, on the Polygon network, transactions with the described fee structure should be confirmed within 5 seconds.
However, during network congestion, it may take longer. In these cases, the user has several options:
- Wait until the transaction is confirmed.
- Speed up the transaction in their wallet.
- Cancel the transaction.
Transaction Cancellation
If a transaction is canceled in the wallet, the user must confirm the cancellation before proceeding.
All user actions in exceptional circumstances are handled properly in all True Casino games.
Any bets that reach the smart contract are recorded on-chain.
For more details on pending transaction handling, please refer to
Technical Details.