1. Definitions
| Term | Definition |
|---|---|
| Platform | Eventa Markets — operated by an individual (non-profit oriented one-person project) |
| Market | Question with outcomes, resolution criteria, closing date |
| Bet | A stake in XRP on one outcome, locked in XRPL escrow. A bet cannot be sold or traded; it is held until the market settles. |
| Pool | All stakes placed on a market. Winning bets share it in proportion to their stakes. |
| Odds | An outcome's share of all stakes placed on the market so far |
| Resolution | Admins declare the winning outcome under the market's rules; two admins must agree |
| bps | 1 bps = 0.01% |
2. Legal & Operator
Prediction markets vs gambling: No counterparty house; odds come from the pool itself (each outcome's share of all stakes). Information-discovery role.
Regulatory: CFTC approves event contracts (Kalshi, CME); MiFID II may classify as financial instruments; IEM under no-action letter.
Operator: Individual operator. Does not set prices, take exposure, or act as counterparty.
3. Market Lifecycle
Before RESOLVED → may be CANCELLED (every stake refunded in full)
| State | Allowed Actions | Transition Conditions |
|---|---|---|
| Pre-bet | Signal interest (no XRP is locked); admin edits market | → Open when an admin opens it or, on testnet, when its interest count reaches the threshold (1 on testnet) |
| Open | Place bets; odds move with every stake. Bets cannot be sold. | → Closed when closesAt datetime reached |
| Closed | No new bets; await resolution | → Resolved when admins declare the winning outcome (two must agree) |
| Resolved | Settlement pays out; read-only | Terminal state |
| Cancelled | Every stake refunded in full right away; read-only | Terminal state |
4. Pool Odds (Formulas)
oddsᵢ = Sᵢ / Σⱼ Sⱼ
gross = stake × P / S_w
net = gross × (10,000 − fee_bps) / 10,000
Sᵢ is the total stake on outcome i, P is the total pool (all stakes) and S_w is the total stake on the winning outcome. This is a parimutuel pool: your payout depends on the final pool, not on the odds shown when you bet. If nobody backed the winning outcome, every stake is refunded in full. Amounts are computed in drops (1 XRP = 1,000,000 drops) and rounded down.
5. Fees & Payout
| Fee | Rate | Application |
|---|---|---|
| Platform fee | 200 bps (2%) on testnet | Deducted from each winning payout |
This is the only fee. It is stored on your bet when you place it and shown before you sign. Losing bets pay no fee. There is no spread, trading fee or separate settlement fee.
Net = gross − (gross × fee_bps / 10,000)
6. Resolution & Settlement
CLOSED → admins declare the winner (two must agree) → RESOLVED → settlement pays out.
| Scenario | Resolution |
|---|---|
| Market cancelled by an admin | Every stake refunded in full right away |
| Nobody backed the winning outcome | Every stake refunded in full |
| Ambiguous | Committee review |
| Data unavailable | Cancel or fallback per rules |
7. Risk & Custody
Risk: You can lose your whole stake. Odds move until the market closes, and a bet cannot be sold before settlement. Requests are rate-limited, and resolving a market needs two admins.
Custody (XRPL rail): Until settlement your stake stays in an on-ledger escrow from your own XRPL account. The platform holds each escrow's fulfillment (the secret that releases it) and finishes the escrow at settlement, which moves the stakes into the platform's pool account. Winners and refunds are then paid by a separate XRPL Payment from the platform. Every escrow carries a cancel time of market close + 7 days: if the platform has not settled by then, you can cancel the escrow yourself and get your stake back, as described in §14. Every step is visible on the public ledger.
8. Compliance
v1 has no platform balances: no deposits, no withdrawals and no internal wallet balance. Stakes stay in XRPL escrow until settlement, and payouts are sent to your XRPL address. See Privacy Policy.
9. Disputes
Contact support → committee review → confirm / overturn / cancel. Target: 7 business days.
10. Formula Reference
oddsᵢ = Sᵢ / ΣSⱼ P = ΣSⱼ (all stakes) S_w = stake on winner gross = stake × P / S_w Net = gross − (gross × fee_bps/10000) S_w = 0 → every stake refunded in full
11. How to Fund & Bet (XRPL)
Eventa Markets' first production uses the XRP Ledger (XRPL) only. Stakes and payouts use native XRP only. You sign with Xaman, a WalletConnect wallet or a Ledger; there is no EVM, Polygon, or cash in the initial rollout. Other on-ledger assets may be considered in later phases.
Funding your XRPL wallet
- Use a supported XRPL wallet: Xaman (signs through Xaman's own sign request, by QR code or deep link), a WalletConnect wallet (Joey, Girin or Bifrost), or a Ledger hardware wallet connected in the browser over WebHID. Crossmark and GemWallet are not supported. On testnet only, a demo wallet held by the server can sign for testers.
- Obtain XRP via an exchange, DEX, or wallet-native swap. Send only to your own XRPL address (r...). You need a small XRP balance for transaction fees.
- When you place a bet you sign one transaction, an EscrowCreate that locks your stake. You do not sign anything to release it. There is no deposit to a platform address — your stake stays in an escrow from your own account until settlement.
Important
- XRPL only. First production does not support Polygon, Ethereum, or other chains. Do not send EVM or other assets to an XRPL address.
- Your keys stay in your wallet. You connect and sign with your own XRPL wallet; the platform never sees your private keys. The testnet demo wallet is the exception: the server holds it.
- Double-check amounts and address before signing. Transactions cannot be reversed.
12. Payment & Settlement
Eventa Markets' first production uses the XRP Ledger (XRPL) only: native XRP for escrow and payouts. Your stake is locked in an XRPL escrow from your own account until settlement; you sign that lock with Xaman, a WalletConnect wallet or a Ledger. There is no EVM, Polygon, or cash in the initial rollout.
| Principle | Description |
|---|---|
| Escrow until settlement | Your stake stays in an on-ledger escrow from your own account until the market settles |
| Platform at settlement | The platform holds each escrow's fulfillment, finishes the escrow at settlement and pays winners and refunds from its pool account |
| XRPL only (v1) | First production: XRP Ledger with native XRP only for escrow; no EVM, no Polygon, no cash |
| Auditable | Every step is on the public ledger; explorer links are shown |
| One signature | You sign one EscrowCreate per bet, with Xaman, Joey, Girin, Bifrost or a Ledger |
| No platform balances | No deposits, no withdrawals, no internal wallet balance; no fiat stored |
Settlement (XRPL)
| Asset | Mechanism | Signing |
|---|---|---|
| XRP (native) | EscrowCreate — locks your stake | You |
| XRP (native) | EscrowFinish — moves stakes to the pool account | Platform |
| XRP (native) | Payment — winnings and refunds | Platform |
| XRP (native) | EscrowCancel — after market close + 7 days, if not settled | You |
Flow
- User connects an XRPL wallet: Xaman, a WalletConnect wallet (Joey, Girin, Bifrost) or a Ledger.
- User selects a market, an outcome and an amount in XRP.
- Backend builds an EscrowCreate for the stake, with a cancel time of market close + 7 days, and shows the platform fee before you sign.
- User signs the EscrowCreate; the stake is locked on XRPL. This is the only transaction the user signs.
- The market closes; admins resolve it (two must agree).
- The platform submits EscrowFinish for each escrow; the stakes move into its pool account.
- The platform pays each winner with an XRPL Payment: their share of the pool minus the fee. If the market was cancelled or nobody backed the winning outcome, each stake is paid back in full.
Trust Model
Until settlement your stake stays in an escrow from your own account. The platform holds each escrow's fulfillment, so it can finish the escrow; it does so at settlement. If it has not settled by market close + 7 days, you can cancel the escrow yourself. Every step is visible on the public ledger.
The escrow coordination pattern aligns with the open-source xrpl-market-orchestrator.
13. Key Concepts Explained
Brief explanations of terms used across the platform.
What is Escrow?
Escrow means your stake is locked on the XRPL ledger, in an escrow from your own account, until the market settles. You sign EscrowCreate to lock it. The platform holds the fulfillment (the secret that releases it) and finishes the escrow at settlement, which moves the stake into the platform's pool account. If the platform has not settled by market close + 7 days, you can cancel the escrow yourself and get your stake back.
What is WalletConnect?
Reown WalletConnect connects the Joey, Girin and Bifrost wallets to Eventa. Xaman does not use WalletConnect: it signs through Xaman's own sign request, opened by QR code or deep link. Ledger hardware wallets connect directly in the browser over WebHID. With any of them you approve the escrow lock in your wallet, and the platform never sees your private keys. Crossmark and GemWallet are not supported.
What does "XRPL only" mean?
First production supports only the XRP Ledger for this rail, with native XRP for escrow and settlement. There is no Polygon, Ethereum, or other chain for this flow, and no cash deposits. Additional assets or integrations may be evaluated in later phases.
How does XRPL escrow (XRP) work?
You sign one EscrowCreate that locks native XRP from your account. At settlement the platform submits EscrowFinish, which moves the stakes into its pool account, and then pays winners and any refunds with a separate Payment in XRP. The platform holds the pooled XRP from EscrowFinish until those payments are made.
Who Holds My Stake?
Until settlement, an escrow from your own account on the ledger. From EscrowFinish until payout, the platform's pool account. Because the platform holds each escrow's fulfillment, you rely on it to finish escrows only at settlement and to pay out; the cancel time (market close + 7 days) is your fallback if it does not settle. v1 has no platform balances: no deposits, no withdrawals and no internal wallet balance. The fee is taken from winning payouts only.
14. If Your Funds Seem Stuck (XRPL Escrow)
When you place a bet, you sign an XRPL conditional escrow. That escrow includes a latest cancel time set when the lock is created: the market's scheduled close plus 7 days. Until that time passes, the ledger will not treat the escrow as expired for cancel purposes.
After that time has passed, the XRP Ledger allows the escrow to be cancelled so that locked XRP returns to your wallet. Under XRPL rules, you do not have to wait only on the platform to submit that cancellation — you may use any XRPL-compatible wallet or tool that supports the appropriate transaction, subject to your wallet's UX. See the official reference: EscrowCancel (XRPL.org).
You can also inspect your address on a public XRP Ledger explorer to view escrow status and transaction history. If something still looks wrong, contact support with your wallet address and, if possible, the escrow or transaction identifiers shown in your wallet.
Not legal advice
This section describes general ledger behaviour for transparency. It is not legal or financial advice. If you are unsure how to use your wallet or an explorer, use your wallet vendor's documentation or support.
15. Cancelled Markets & Refunds (XRPL)
If an admin cancels a market, every stake is refunded in full right away. The platform finishes each escrow and sends the full stake back to your address with an XRPL Payment. If the escrow's cancel time has already passed, the escrow is cancelled instead and the stake returns on-ledger. If nobody backed the winning outcome, every stake is refunded in full the same way.
If you believe a cancellation was applied but your wallet still shows locked XRP, use an explorer to confirm on-chain status and contact support. See also §14 — If Your Funds Seem Stuck.
16. How the Pieces Fit Together (High Level)
Eventa is designed so you can understand who holds funds and what decides odds and payouts, without publishing internal infrastructure details.
High-level data flow
You
Browser + XRPL wallet (Xaman, WalletConnect or Ledger)
Eventa
HTTPS app & API (markets, accounts, settlement coordination)
XRP Ledger
Escrow & payments enforced on-chain
Odds & payout math
A parimutuel pool: odds are each outcome's share of all stakes, and payouts follow the published formula in §4 — applied by the platform's settlement logic, separate from your wallet keys.
- Keys: Your XRPL keys stay in your wallet (Xaman, a WalletConnect wallet or a Ledger); Eventa never receives them. The testnet demo wallet is the exception: the server holds it.
- Locked XRP: Held in an escrow from your own account until settlement. The platform holds each escrow's fulfillment and finishes it at settlement; the stakes then sit in its pool account until winners and refunds are paid. If it has not settled by market close + 7 days, you can cancel the escrow yourself (§14).
- Outcomes: Admins declare the winning outcome under the rules published on the market; two admins must agree.
- Personal data: Categories and retention are described in the Privacy Policy.
17. Fairness & The House
Odds come from the pool: each outcome's share of all stakes placed so far, as summarized in §4 and §10. The operator does not manually quote odds like a traditional bookmaker.
When markets resolve, one published payout formula applies to every bet. The platform charges one disclosed fee, taken from winning payouts only (see §5); it does not take the opposite side of your bet as a house counterparty in the XRPL escrow flow described in §§11–13.
For on-ledger mechanics, see EscrowCreate, EscrowFinish, and Payment in §12; for concepts in plain language, §13.
18. Developer API (Read-Only)
Signed-in users can create API keys under Settings → API Keys for programmatic, read-only access to their own data and to public market data. Each key is granted an explicit set of scopes — it can only reach the data you selected when creating it.
Authentication
Send the full key (shown once at creation) in the X-API-Key header. Keys look like evk_xxxxxxxx_…; treat them like passwords. Lost keys cannot be recovered — revoke and re-create.
https://api.eventa.markets/api/v1/markets
Endpoints and scopes
| Endpoint | Required scope | Returns |
|---|---|---|
| GET /api/v1/markets | markets:read | Market list (same filters as the site: category, status, limit, offset) |
| GET /api/v1/markets/:id | markets:read | One market with outcomes and current prices |
| GET /api/v1/account | account:read | Your profile (id, email, KYC tier and status) |
| GET /api/v1/wallets | wallet:read | Balances and locked balances per currency/network |
| GET /api/v1/bets | bets:read | Your bet history and open positions (paginated, filter by status) |
| GET /api/v1/analytics | analytics:read | Aggregate stats: total staked, paid out, net result, win rate |
Read-only by design
403; an invalid, revoked, or expired key receives 401. Keys of suspended accounts stop working immediately, and you can revoke any key instantly from Settings.Limits
- Up to 10 active keys per account; optional expiry of 30/90/365 days.
- Requests share the platform rate limit (100 requests/minute).
- Monetary values are returned as decimal strings; timestamps are ISO-8601 (UTC).