Skip to content
Blockchain-OraclePublic

About

Up or down, in minutes, live on Bitcoin Cash mainnet. Call BTC, ETH, BCH or gold for a few cents; CashScript covenants check the price General Protocols signed and pay the winners. AI agents play from vault wallets. No house.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Jōge: up or down, in minutes. Live on Bitcoin Cash mainnet.

Jōge · 上下

Up or down, in minutes.
Call BTC, ETH, BCH or gold for a few cents. A contract on Bitcoin Cash checks the signed price and pays the winners. No house.

Play Jōge · Demo video · Docs · Mainnet genesis · Deck

  • Is it cool? Rounds with no operator. General Protocols signs the price, CashScript and SolidCash contracts check it and pay the winners, and anyone can finish a round. AI agents bet from vaults that can only pay their owner.
  • Is it slick? Open https://getjoge.xyz, pair any wallet over WizardConnect, tap ▲ Up or ▼ Down: one signature. The result finds you on any page, the payout lands in your wallet, and every round replays as a film with sound.
  • Does it work? Live on Bitcoin Cash mainnet since 18 Nov 2026. Round 785 paid Up 26,450 sats (payout); every signed price re-checks in your browser; 77 contract tests, 23 of them attacks.
  • Will it make money? The contract takes 2% of decided pots and pays whoever opened the round 0.5%, so anyone can run rounds for profit. No custody, no float, no house risk.

Built for BCH BLAZE 2026 · Mainnet Track. Built from scratch during the event: work began 16 Nov 2026 and the repository was first pushed on 18 Nov (how it meets the hackathon). Jōge (上下) is Japanese for "up and down": the two characters are the two buttons.

The problem

People like calling a short price move for a few cents: will Bitcoin be higher in five minutes? Today they do it on apps where an operator runs every round. The operator opens the round, holds everyone's stake in its own account, posts the closing price, decides who won, and pays out when it chooses. Players have to trust that price, that payout and that the operator is still there tomorrow; ties often go to the house, and there's an account to open first.

On Bitcoin Cash there was no game like this at all, and nothing that settles a short round from a price anyone can check.

The idea

Make the round itself the operator. Jōge's rounds are CashTokens held by covenants that know every rule: when entries close, which signed price sets the line, which one decides the close, who gets what. Your browser builds your entry from live coins on the chain, your wallet signs it, and from then on the contracts decide. Lock and settle have exactly one valid form, and a payout pays each ticket an amount fixed at settlement; none of them needs a key, so our keeper sends them, and so can any browser.

Mainnet round 785: its real price path with the line to beat, then its five moments: open, enter (13,655 and 11,845 sats), lock (25,500 pot), settle (Up), pay (26,450 and 950)

A real mainnet round, 785. Bitcoin, five minutes, 18 Nov 2026 17:30 → 17:35 UTC. Up staked 13,655 sats, Down 11,845. General Protocols signed $62,976.32 as the line to beat; Bitcoin closed at $63,073.76, so Up won 26,450 sats: 13,655 × 25,500 ÷ 13,655, plus 950 sats of its 1,200-sat ticket deposit (250 pays for the payout). The 2% fee would have been 510 sats, under the contract's 1,000-sat minimum, so it stayed in the pot. Down got 950 sats of its deposit back. Every step is on chain: open · enter ▲ · enter ▼ · lock · settle · pay.

The line to beat is the oracle's message after the one that lets the round lock, signed about a minute later; the keeper, or anyone, locks as soon as that first message exists, which closes entries before the line is known (why). Each round's proof page re-checks every signature in your browser against General Protocols and recomputes every payout.

Demo video

Watch the Jōge demo: a real mainnet round, open to payout, with a play button

Watch on YouTube: https://youtu.be/mnaZhjLxoqE (3:06). Abu says hello, then the four questions BCH BLAZE judges ask, answered with real BCH on mainnet. Follow the proof:

  1. 0:47 · First visit. The guide pairs a wallet over WizardConnect; tap Up, confirm in the wallet, and the call is on the chart.
  2. 1:04 · Real BCH. One slide to mainnet, then five cents on Up in Ether round 1812 (enter ▲ 5e7832cb…).
  3. 1:14 · Round 785 on chain. Open, enter, lock, settle, pay, drawn step by step: the line to beat is the oracle's next message, and no step needs a key.
  4. 1:34 · Paid to the wallet. Abu's $0.05 on Up paid $0.10 (49,062 sats) in the round's payout transaction (4f3099c0…); the round replays and saves as a receipt with a QR code.
  5. 1:44 · The proof. Round 20's proof page re-checks five General Protocols signatures in the browser.
  6. 1:51 · Agents, the business, the code. An agent's SolidCash vault only pays its owner; the 2% fee and the keepers' 0.5%; the docs and source.

The video plays with these chapters at getjoge.xyz/demo, next to every transaction of the three rounds it shows.

Try it yourself:

  1. Open the rounds: you land on mainnet, and the first-run guide pairs your wallet over WizardConnect.
  2. Tap Up or Down. Your wallet signs one entry; your call appears on the chart, winning or behind, live.
  3. Wait for the close: the result reaches you on any page, and the payout lands in your wallet by itself.
  4. Open the round's Proof and press Verify: every signed price is re-checked in your browser.
  5. Want free coins first? Flip to chipnet with the switch in the header: Get test BCH pays you test coins inside the app, and the slide takes you back to real BCH. On mainnet, if nobody is on the other side a minute or more before the start, a Partner agent takes it, up to its cap.

How it works

Who touches what: your browser and wallet enter rounds and receive payouts; round contracts on Bitcoin Cash hold every pot; General Protocols signs prices; Jōge's servers lock, settle, pay and place agents' bets

Your money moves only between your wallet and the contracts (the vermilion path). Jōge's servers index the chain, relay prices, keep rounds moving and run the agents; none of that can touch a stake, and anyone can do the keeper's job.

An agent's leash: you fund the vault; the agent's key can only bet into a round's gate under its cap, and the ticket pays you; anywhere else is refused; only you withdraw

AI agents with a leash on chain. You build an agent in four steps (a face, a style and posture, its markets, its cap) and fund its vault. The vault is a SolidCash covenant built from your address, the agent's key and its per-bet cap: the key can only buy round tickets that pay you, each under the cap, and only you can take the money back. A fixed gate, not the model, decides each bet. Partner agents take the empty side of a lone call, so a first round on mainnet still plays.

Built on

Piece What it does in Jōge Where
CashScript 0.14 The round covenants: Gate, EventGate, Ticket, MasterOpen, MasterLocked, MasterSweep packages/contracts/cashscript
SolidCash 0.51 Lane threads, the round factory and the agent vault packages/contracts/solidcash
CashTokens Every round, gate, ticket and lane thread is an NFT of Jōge's own category deployments/mainnet.json
General Protocols Signed BTC, ETH, BCH and gold prices, checked on chain with checkDataSig packages/contracts/cashscript/oracle.cash
WizardConnect Pairs any Bitcoin Cash wallet that speaks WizardConnect (Selene, Cashonize, Paytaca, Electron Cash); signs entries, vault funding, withdrawals and sign-in apps/web/src/features/wallet
AI SDK Sensei and the agents' reads (openai/gpt-5.4-mini by default) packages/brain

How Jōge meets BCH BLAZE 2026

The Mainnet Track asks for a live, usable app in which anyone can make a useful BCH mainnet transaction, with WizardConnect or XO integration, and a banner carrying the deck, the source and a CashTokens address.

Requirement How Jōge meets it Check it
Live, usable demo The app, no setup: open it and play; a 3:06 video shows it on mainnet getjoge.xyz, the video
Useful BCH mainnet transactions Entering a round is a mainnet transaction from your wallet; rounds lock, settle and pay on mainnet round 785, mainnet docs
WizardConnect The only way to pair: QR, deep link or Cashonize one-click; every wallet signature goes through it wallet-context.tsx
Banner: deck, source, CashTokens address At the top of the app and the docs, with the demo video; the deck opens full screen at getjoge.xyz/slides; the address opens as a QR code the app
Open source MIT LICENSE
Judged on What to look at
Innovation and creativity Rounds with no operator: the line is the oracle's next message so nobody can race it; anyone can finish a round; AI agents boxed in by a covenant
Design and usability One tap to play, your call live on the chart, results that find you, every round a film with sound, receipts and videos with a QR code, phone-first
Technical strength Nine covenants in two languages; lock and settle each have one valid form, and two clients build byte-identical lock, settle and payout transactions (tested); 77 contract tests including 23 attacks; a 200-ticket payout in 22,048 bytes
Business potential The contract itself takes 2% of every decided pot over about $0.10 (50,000 sats): no custody, no float, no house risk. Bitcoin Cash's sub-cent fees make cent-sized rounds pay. Whoever opens rounds earns 0.5% of pots over about $0.40 (200,000 sats), so independent keepers can run lanes for profit. AI agents and Partner agents bring volume and keep every round playable

Proof

CashTokens address (prizes, EMBER2026) bitcoincash:zpx428ysgswaypfgk6aswckpjwa99hxk6v4gqs3xjp
Token category 196b15bfdfab0cf49d0502a6e70ab91834875319db80d41e0a1586d395ad7fd1
Genesis 4d904970…1a92, 18 Nov 2026 17:03 UTC: 13 lane threads and 3 factory threads
First mainnet round BTC 5 min, opened 60cb768f… at 17:11 UTC
A paid round round 785, payout 1474ff08…
Contracts the main addresses in the docs; all 13 in deployments/mainnet.json
Tests pnpm --filter @joge/contracts test: 77 passing, 23 of them attacks (list)
Anyone can finish the round page's Lock, Settle and Pay buttons build each step in the browser from public servers and General Protocols' prices (finish.ts)

The whole product

The round screen Live chart with the line to beat, 1H and 1D candles, a countdown, stake per tap, Up and Down with what each pays now (docs)
Results and replays 的中 / 外れ / 無効 seals on any page; every round as a 9–17 s film with its own sound
Receipts and videos A receipt image or an MP4 of the round, made in the browser, each with a QR code; Share my run
Sensei An AI coach: a straight call, one reason, one risk, one-tap ticket cards, and a brake
Agents A four-step studio, a real dry read before you create, vaults, decisions, Partners
Your record Portfolio, leaderboard and profiles, indexed from the chain
Limits A daily limit and a break you can't undo in the heat of a losing run
Two worlds Chipnet with free test coins from an in-app faucet; mainnet with real BCH, behind a slide
On demand Mainnet markets open rounds only while someone is watching, so markets nobody looks at spend no fees on empty rounds

Run it locally

Node 24 and pnpm 12, Postgres 17.

pnpm install
cp services/engine/.env.example services/engine/.env   # DATABASE_URL is the only required value
cp apps/web/.env.example apps/web/.env.local
pnpm --filter @joge/engine start
pnpm --filter @joge/web dev

Everything else is in Build.

apps/web            the app: pages, read API, live stream, Sensei
services/engine     oracle relay, price line, indexer, keeper, agents, alerts, faucet
packages/contracts  CashScript + SolidCash covenants, builders, deployments, tests
packages/sdk        oracle messages, commitments, payout maths, lanes
packages/db         Postgres schema and queries
packages/chart      the canvas chart
packages/brain      Sensei and the agents' model layer
docs-site           the docs

Credits and licence

Prices are signed by General Protocols. Coin marks come from web3icons (MIT); agent faces from DiceBear's Notionists; fonts are Sora, Inter, JetBrains Mono and Noto Serif JP (SIL Open Font License). Jōge is MIT licensed: see LICENSE.

About

Up or down, in minutes, live on Bitcoin Cash mainnet. Call BTC, ETH, BCH or gold for a few cents; CashScript covenants check the price General Protocols signed and pay the winners. AI agents play from vault wallets. No house.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages