Your bill
No bill yet. Create one, or load the example.
- Bill
- —
- Status
- —
- Share
- Paid
- —
- Vault
- —
- Deadline
- —
- Organizer
- —
Act as…
Pick a person, then act. The demo refuses exactly what the template refuses — try paying twice, or claiming early.
How it works on-chain
- Create — the payer calls
SplitBill::newwith a title, a share, the member count and a deadline epoch. The bill holds an empty TARI vault. - Pay — each friend calls
SplitBill::paywith exactly one share of TARI. One payment per person; the wrong amount is rejected. - Claim — when every share is in, only the organizer can call
SplitBill::claim. The whole vault goes to their account in one call. - Refund — after the deadline, anyone who paid can call
SplitBill::refundand 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.