Phoenix Prediction Docs

Reconciliation

Match Phoenix wallet callbacks to the operator ledger

Reconciliation proves that Phoenix Prediction wallet callbacks and the operator wallet ledger agree.

The practical question is simple: every Phoenix Prediction tx_id should affect the operator wallet exactly once.

What to Store

For every debit, credit, and rollback callback, store:

FieldWhy
tx_idIdempotency and lookup key
player_idOperator-side player account
amountWallet movement amount
kindDebit, credit, or rollback
gameShould be prediction_market_v1
action_idGroups related bet and settlement actions
market_id or round_idMarket or round reference when present
Request bodyAudit and support
Response bodyProves what your wallet returned
Final balanceSupport and accounting
Signature resultSecurity audit
Processed timestampOrdering and investigation

Daily Reconciliation

Run these checks at least daily during launch:

  • Count Phoenix debit callbacks vs accepted wallet debits.
  • Count Phoenix credit callbacks vs settled wallet credits.
  • Find duplicate tx_id requests and confirm they had one balance effect.
  • Find credit callbacks that failed after retries.
  • Compare total debit amount, total credit amount, and net GGR.
  • Review voided market refunds.

Player Support Flow

When a player asks about a prediction:

  1. Find the player by your player_id.
  2. Find Phoenix Prediction wallet transactions by tx_id, action_id, or market reference.
  3. Confirm whether debit was accepted.
  4. Confirm whether the market settled or voided.
  5. Confirm whether credit or refund was applied.
  6. Compare final balance with your wallet ledger.

Do not rely only on iframe UI state for wallet support. The operator wallet ledger is the financial source of truth.

Common Mismatches

SymptomLikely cause
Player charged twiceDuplicate debit tx_id was not idempotent
Player missing payoutCredit endpoint failed or returned a terminal error
Player sees settled market but wallet not updatedCredit delivery is still retrying or blocked
Operator ledger has unknown Phoenix transactionMissing request logging or shared wallet endpoint reuse
Phoenix reports wallet errorCallback returned non-2xx, timed out, or rejected unexpectedly

Launch Recommendation

During the first production rollout, reconcile more often than usual. Prediction markets create new support questions because players are watching open positions, market close, resolution, and wallet settlement as separate moments.

On this page