Product
On-chain USDt
Optional mode that moves real USDt with Tether WDK: joiners deposit stake to the host, host pays winners after settle.
Enable on-chain mode
- Set env vars so RPC and USDt token are on the same network.
- Restart the app.
- When creating a pot, enable On-chain USDt stakes.
| Variable | Role |
|---|---|
| NEXT_PUBLIC_EVM_RPC_URL | JSON-RPC for WDK |
| NEXT_PUBLIC_USDT_ADDRESS | ERC-20 contract |
| NEXT_PUBLIC_USDT_DECIMALS | Usually 6 for USDt |
| NEXT_PUBLIC_USDT_SYMBOL | Display symbol |
| NEXT_PUBLIC_CHAIN_NAME | UI label |
| NEXT_PUBLIC_EXPLORER_TX_URL | Tx link prefix |
Flow
- Host creates pot (host is marked as holding the pool; no self-transfer).
- Joiner signs pick, then confirms an ERC-20 transfer of the stake to the host.
- Host locks only after all non-host players show stake sent.
- Host settles the result.
- Host pays each winner with WDK transfer; explorer links are stored on the pot.
Technical path
Transfers call account.transfer({ token, recipient, amount }) on the WDK EVM account. Amount is converted to token base units with the configured decimals. Balance is checked before send.
What you need in the wallet
- Enough USDt for stake or payouts
- Native gas token for ERC-20 transfer fees
- Network matching the configured RPC and token