# 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.

# 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:

  1. Wait until the transaction is confirmed.
  2. Speed up the transaction in their wallet.
  3. Cancel the transaction.

Transaction was not confirmed within 15 seconds
Transaction was not confirmed within 15 seconds

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.