SplitBill on Tari Ootle

Split a bill without anyone holding the money. The template enforces the split — not a server.

⚠ Simulation — no wallet, no real XTM moves. This demo runs the exact same rules as the on-chain template (SplitBill in Rust, tari_template_lib). A Live tab is a placeholder until the template is published.

Your bill

No bill yet. Create one, or load the example.

How it works on-chain

  1. Create — the payer calls SplitBill::new with a title, a share, the member count and a deadline epoch. The bill holds an empty TARI vault.
  2. Pay — each friend calls SplitBill::pay with exactly one share of TARI. One payment per person; the wrong amount is rejected.
  3. Claim — when every share is in, only the organizer can call SplitBill::claim. The whole vault goes to their account in one call.
  4. Refund — after the deadline, anyone who paid can call SplitBill::refund and get exactly their share back. When the last share is refunded, the bill closes.

Rules enforced by the template: no double payment, no wrong amount, no early claim, no admin drain. The organizer never holds the money — the vault does.

Event log