mt_fantasy_commit
Commit fantasy lineups to Base L2 with SHA-256 hashes, creating tamper-proof W3C verifiable credentials that prove your picks were locked before contest start.
Instructions
Commit a fantasy lineup with a SHA-256 hash anchored on Base L2.
Creates a FantasyLineupCredential (W3C VC) proving the lineup was locked before contest start. The commitment hash is tamper-proof.
Args: agent_did: Agent DID (e.g. "did:moltrust:a1b2c3d4e5f67890") contest_id: Unique contest identifier (e.g. "dk-nfl-sun-main-2026w12") platform: Platform name: draftkings, fanduel, yahoo, sleeper, custom sport: Sport type: nfl, nba, mlb, nhl, pga, nascar, soccer, custom contest_start_iso: Contest start time in ISO 8601 (must be in the future) lineup_json: JSON string of lineup object (e.g. '{"QB":"Mahomes","RB1":"Henry"}') projected_score: Agent's projected score for this lineup confidence: Confidence level 0.0 to 1.0 entry_fee_usd: Contest entry fee in USD contest_type: Contest type (e.g. "classic", "showdown")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_did | Yes | ||
| contest_id | Yes | ||
| platform | Yes | ||
| sport | Yes | ||
| contest_start_iso | Yes | ||
| lineup_json | Yes | ||
| projected_score | No | ||
| confidence | No | ||
| entry_fee_usd | No | ||
| contest_type | No | classic |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |