Agent API
sports-workbench exposes 6 methods on the SolanaAgentKit interface. Each method returns a Verifiable Settlement Receipt alongside its payload — agents can read the result, present it to a user, and ship the proof.
// TypeScriptimport { TxlinePlugin } from "@srivtx/sports-workbench";
import { SolanaAgentKit } from "solana-agent-kit";
const agent = new SolanaAgentKit({ wallet, network: "devnet" });
agent.use(new TxlinePlugin({ apiToken: process.env.TXLINE_API_TOKEN }));
const sig = await agent.methods.findSharpMove({
fixtureId: 17588234,
strategy: "sharpDetector",
threshold: 0.5,
});
// → { signal: Signal, receipt: Receipt }Methods
Replay historical TxLINE odds against any of the 4 strategies. Returns a list of signals plus aggregate PnL, hit rate, and a Verifiable Settlement Receipt per signal.
params
returns
{ signals: Signal[], pnl: f64, hitRate: f64, receipts: Receipt[] }Scan the live TxLINE SSE feed for a single fixture and emit signals the moment a threshold move is detected. Persists receipts to .sports-workbench-state.json.
params
returns
Stream<Signal>Fetch the current canonical odds for a fixture across all market types. Each call includes a Merkle proof so callers can verify the data on Solana.
params
returns
{ fixtureId, markets: Market[], receipt: Receipt }List fixtures for a competition (or all 8 leagues + World Cup). Free tier covers 8 soccer leagues; 7-day replay available for paid.
params
returns
Fixture[]Resolve a (fixture, messageId) pair against the on-chain Merkle root. Returns a signed attestation suitable for downstream use (settlement, audit, dispute).
params
returns
Receipt (programId, batchRootsPda, subTreeProof, mainTreeProof)Return the natural-language + mathematical definition of a strategy. Useful for agent planning, prompt engineering, and audit trails.
params
returns
{ name, summary, math, params: Param[] }