The prize from FoxLeague of a League + Knockout tournament
const url = 'https://foxleague.ai/api/tournaments/1/prize';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://foxleague.ai/api/tournaments/1/prizeThe prize an admin set for a League + Knockout tournament: how much is locked in the tournaments contract and its transactions. The state and the amount are read from the contract for a signed-in caller (at most every 20 seconds per tournament); without a session the stored reading answers, which the backend refreshes every minute. The prize is split equally among the 8 quarter-finalists and paid only after the tournament completed; a cancelled tournament returns it to its depositor.
Who: anyone. With a session, can_deposit tells the sponsor’s own wallet that it may deposit now.
Refusals:
This tournament has no prize from FoxLeague.: no prize was set or no such tournament.
Authorizations
Section titled “Authorizations ”- None
- session
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The tournament id.
Responses
Section titled “ Responses ”Success or a refusal: read success (the refusals are in the description).
object
A machine-readable reason next to error, set only where the caller must act differently. tx_pending: the payment was not refused but could not be verified yet; keep the transaction hash and confirm again with the same hash, never pay twice.
The answer. Present when success is true.
object
The total deposited in the contract, in atomic FOXSY (18 decimals). It stays after the payout or the refund. 0 before a deposit.
true for the sponsor’s own wallet while the tournament is open, the terms are set and the contract, read just now for this answer, holds nothing deposited yet.
The hash of the deposit transaction. null before it is recorded.
true when the state and the amount are a reading of the contract from the last 20 seconds. false when the stored reading answers: the caller has no session or the contract could not be read just now.
The hash of the payout transaction. null before the payout.
The prize the admin set at create, in whole FOXSY.
When the state and the amount were read from the contract.
The number of teams that share it: the 8 quarter-finalists.
The hash of the refund transaction of a cancelled tournament. null otherwise.
Once paid: what each quarter-finalist received, in atomic FOXSY. null before.
The prize as the tournaments contract holds it: none (not deposited), held (locked in the contract), paid (paid to the quarter-finalists), refunded (the tournament was cancelled and the prize went back to its depositor) or reclaimed (returned by the owner 30 days after the completion, never paid).
true once the contract names the sponsor wallet and the 8 recipients: a deposit is possible from then on.
The tournament id.
Why the request was refused, in plain words. Present when success is false.
true when the request did what it asked. false is a refusal: read error.
Example
{ "data": { "amount_atomic": "100000000000000000000000", "can_deposit": false, "deposit_tx": "6f2c90b1aa3e4d17b2a1c0f5e9d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a3f2e1d0", "from_chain": true, "payout_tx": null, "planned_foxsy": 100000, "read_at": "2026-11-02T10:00:00Z", "recipients": 8, "refund_tx": null, "share_atomic": null, "state": "held", "terms_set": true, "tournament_id": 602 }, "success": true}No valid session. The body is plain text: Missing Authorization header, Invalid Authorization format, Invalid session token or Session expired or invalid. Sign in again.
Example
Session expired or invalid