How-to guides > Settle

Settle a market

Resolve a market with a signed TxLINE stat proof.

Settle a market

Settlement submits a TxLINE proof and resolves a market if the proof validates on-chain.

Requirements

  • The fixture has ended.
  • TxLINE has a proof for the fixture/stat.
  • The market is not already resolved.
  • The TxLINE program is the known devnet or mainnet txoracle program.

Dry-run keeper

bash
cd app
npm run keeper:settle

Expected result:

  • The keeper scans markets.
  • Already-resolved markets are skipped.
  • Markets without proofs are reported as not ready.
  • No transaction is submitted.

Execute settlement

bash
cd app
SOLANA_KEYPAIR=~/.config/solana/quovra-dev.json npm run keeper:settle -- --execute

Expected result:

  • The keeper fetches the TxLINE proof.
  • It derives the daily_scores_roots account.
  • It sends settle(args).
  • Quovra CPIs into txoracle.validate_stat.
  • The market resolves from returned boolean data.

Failure behavior

If the proof is malformed, stale, for the wrong fixture, or for the wrong stat, the transaction reverts and funds remain escrowed.

Related pages

Search keywords

settle, keeper, TxLINE stat proof, txoracle CPI

Last updated: [YYYY-MM-DD]