Documentation Index
Fetch the complete documentation index at: https://txline-docs.txodds.com/llms.txt
Use this file to discover all available pages before exploring further.
This endpoint provides a deep cryptographic proof for one or two statistics within a single scores update. The TxLINE’s data is structured in a three-level Merkle hierarchy:
- A main batch contains summaries for multiple fixtures.
- Each fixture summary is the root of a sub-tree of all score update events for that fixture.
- Each score update event is the root of a sub-tree of all the individual statistics it contains.
This endpoint returns the full set of proofs needed to connect the stat(s) all the way to the main batch root published on-chain.
To request a proof for a second stat (for use in two-stat predicates like comparing home vs. away scores), include the optional statKey2 query parameter.
With the returned data in hand, the user can execute an on-chain transaction to validate that a supplied TraderPredicate with optional BinaryOperation holds against the
supplied stat(s), for example, in the case of the single stat, validating that the team’s number of touchdowns exceeded 2 at the end of the first quarter, or,
in the case of two stats, validating that the scores difference exceeded 2—see the public repository for on-chain examples: https://github.com/txodds/tx-on-chain.
Query Parameters
The ID of the fixture for the scores event.
The sequence number of the specific scores event within the fixture’s history.
The key identifying the specific statistic to validate (e.g., 1 for ‘Participant1_Score’).
The key identifying an optional second statistic to validate for two-stat predicates.
Response
The scores event record being validated
First statistic details including key, value, and proof
Optional second statistic details (only if statKey2 was provided)
Merkle proof connecting the stats to the event root
Merkle proof connecting the event to the fixture summary root
Merkle proof connecting the fixture summary to the batch root
Summary information about the fixture’s score updates
Metadata about the batch containing this scores event