Skip to main content

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? Check out our World Cup Free Tier for instant access to World Cup and International Friendlies data with no payment required.
Choose the path that matches your use case:
  • Free World Cup path: Follow the World Cup Free Tier guide for service levels 1 or 12. 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.
Free tiers do 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.
Do not activate a devnet transaction on https://txline.txodds.com, and do not activate a mainnet transaction on https://txline-dev.txodds.com. Use the matching apiOrigin from the selected 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 validateStatV2 examples.

Purchase TxL (Optional)

Note: Purchasing TxL tokens is optional. We offer free tiers for World Cup and International Friendlies data with no payment required. View all subscription tiers to see free and premium options.
In order to purchase TxL, your wallet will need to be funded with USDT. If you don’t have USDT on Solana, you can swap for it using Jupiter or another exchange. TxL purchases use a 2-step process: request a quote from the backend, then verify and sign the transaction locally.

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.

Subscribe On-Chain

Subscribe to TxLINE on-chain after choosing a service level. Paid tiers require TxL; the free World Cup tiers do 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:

Activate Your API Token

After subscribing on-chain, activate your API access by signing the transaction and calling the activation endpoint.
The activation signature must be a base64-encoded detached wallet signature over the exact message string. For the standard free bundle, SELECTED_LEAGUES = [], so the message has two colons between txSig and jwt:
The signing wallet must be the same wallet that submitted the on-chain 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