Start

Getting started

Run Splitpot locally or open a deployed site, create a wallet, and open your first pot in a few minutes.

Requirements

  • Node.js 20 or newer
  • A modern browser (Chrome, Firefox, Safari, Edge)
  • Optional: USDt and gas on your chosen network for on-chain mode

Install and run

git clone https://github.com/mystiquemide/splitpot.git
cd splitpot
npm install
cp .env.example .env.local
npm run dev

Open http://localhost:3000. Product app: /app.

First pot (off-chain)

  1. Go to /app.
  2. Set a session passcode (min 8 chars), choose Create WDK wallet, then sign the unlock message.
  3. Back up the seed offline (Show seed requires passcode). Vault is encrypted in this browser only.
  4. Fill match details, stake, and your pick. Leave on-chain off for a dry run.
  5. Sign and create. On the pot page, copy the invite link (hash-based).
  6. Open the link on another device or profile, create a wallet there, and join.
  7. As host, lock picks when everyone is in, then settle the result.

Optional: on-chain USDt

Set token and RPC on the same network in .env.local:

NEXT_PUBLIC_EVM_RPC_URL=https://ethereum-rpc.publicnode.com
NEXT_PUBLIC_USDT_ADDRESS=0xdAC17F958D2ee523a2206206994597C13D831ec7
NEXT_PUBLIC_USDT_DECIMALS=6
NEXT_PUBLIC_USDT_SYMBOL=USDt
NEXT_PUBLIC_CHAIN_NAME=Ethereum
NEXT_PUBLIC_EXPLORER_TX_URL=https://etherscan.io/tx/

Restart the dev server. Create a pot with On-chain USDt stakes enabled. Joiners will be asked to send stake after signing.

Useful commands

npm run dev        # local development
npm run lint       # eslint
npm run typecheck  # tsc --noEmit
npm run build      # production build
npm start          # serve production build