Overview
TxLINE provides cryptographically verifiable sports data through a hybrid Solana on-chain and TxODDS off-chain system. Access fixtures, odds, and scores with time-limited API tokens secured by on-chain subscriptions.Getting Started
Want to try for free? Use service level 1 for instant access with no payment required.
- Free tier path: Use service level 1. No TxL purchase is required.
- Paid subscription path: Continue below to purchase TxL if needed, subscribe on-chain, and activate an API token.
The snippets below show the required integration pieces. To run them in your own app, provide a Solana wallet object, use the matching TxLINE IDL/types for your network, and keep the Solana RPC, program ID, guest JWT host, and API host on the same network.
The free tier does not require a TxL purchase, but the on-chain
subscribe transaction still needs SOL for Solana transaction fees and any account rent. On devnet, fund your wallet with a devnet SOL airdrop before subscribing.Select Your Network
Pick one network and use it consistently for every step. The Solana RPC, program ID, TxL mint, guest JWT, and activation endpoint must all be on the same network.The
wallet variable is your signing wallet. In a browser app, use your wallet adapter’s public key, signTransaction, and signMessage methods. In a local Anchor script, use ANCHOR_WALLET and ANCHOR_PROVIDER_URL to load the payer wallet.For a runnable devnet version of the activation and stream flow, use the scripts in Runnable Devnet Examples. They include free-tier activation, odds and scores streams, fixture validation, and
validateStatV4 examples.Purchase TxL (Optional)
Note: Purchasing TxL tokens is optional. We offer a free tier with no payment required. View all subscription tiers to see free and premium options.
Step 1: Request Purchase Quote
Step 2: Verify and Sign Transaction
TxODDS may refuse purchase requests and ask for KYC (Know Your Customer) verification in accordance with compliance requirements.
Your TxL token account stays frozen before and after a purchase. Only
txoracle program instructions, such as a purchase, subscribe, or book_fixture, move TxL into or out of it. Ordinary token transfers from it fail.Subscribe On-Chain
Subscribe to TxLINE on-chain after choosing a service level. Paid tiers require TxL; the free tier (service level 1) does not require a TxL purchase. Choose between a standard subscription or a custom league selection. Derive the shared accounts once before using either subscription tab:subscribe and book_fixture need your TxL token account to exist, even on the free tier, where no TxL moves. Create it before subscribing if it does not exist yet:
- Standard Subscription
- Custom Leagues
Activate Your API Token
After subscribing on-chain, activate your API access by signing the transaction and calling the activation endpoint.SELECTED_LEAGUES = [], so the message has two colons between txSig and jwt:
subscribe transaction, and the jwt must come from the same network host used for activation.
You’re now ready to use the API. Send both activated credentials with data API requests:
Credential Lifecycle
If a data request returns
401, renew the guest JWT from the same network host and retry with the same activated API token. If activation returns 403, check the signed message, wallet, signature encoding, transaction network, and activation host.
Next Steps
- Read Using the API for hosts, credentials, batches, streams, and errors, then explore the endpoints in the API Reference
- Check out Subscription Tiers for pricing and plan options
- Book a fixture to stream its odds and scores (needed even within your subscription bundle), to get scores and odds for a fixture outside your bundle, and to validate a fixture’s stats and odds on-chain
- Run the Runnable Devnet Examples for end-to-end devnet activation, booking, streaming, and validation
- Use Troubleshooting to diagnose activation, streaming, and validation errors