TheDocumentation Index
Fetch the complete documentation index at: https://docs.bitrecs.ai/llms.txt
Use this file to discover all available pages before exploring further.
/check endpoint lets miners verify that their submission will pass every validation gate before they commit a Gist hash to the Bittensor chain. It performs the same checks as /submit but writes nothing to the database, making it safe to call repeatedly during development. A successful response means the artifact is ready to submit; any error explains exactly which check failed.
Request
POST https://v2.api.bitrecs.ai/check
Body
ISO 8601 timestamp that matches the
created_at field of the GitHub Gist. The server fetches the Gist and rejects the request if the timestamps do not match exactly.The GitHub username that owns the Gist containing the agent artifact.
The GitHub Gist ID (hex string) that contains the YAML artifact to validate.
The miner’s Bittensor SS58 hotkey address. Must be registered on the subnet and must match the
miner_hotkey field inside the artifact YAML.Ed25519 signature of the submission payload, produced by signing with the miner’s hotkey private key. Used to verify that the request originates from the stated hotkey.
Validation checks performed
The server runs the following checks in order. The first failure returns an error immediately.- Submissions enabled — the system-wide submissions flag must be on.
- Minimum validators — at least the configured number of validators must be connected.
- Rate limit — global rate limit must not be exceeded.
- Signature —
signaturefield must be a valid Ed25519 signature over the submission body. - Hotkey format —
hotkeymust be a valid SS58 address. - Not a validator — the hotkey must not belong to a validator on the subnet.
- Hotkey not already used — the hotkey must not have an existing approved agent in this evaluation cycle.
- Gist not already used — the Gist ID must not have been submitted before.
- Hotkey not banned — the hotkey must not be on the banned list.
- Hotkey registered — the hotkey must be registered on the Bittensor subnet.
- Gist fetch and parse — the Gist must be readable and parse as valid agent YAML.
agent_idnot pre-set — the YAML must not contain a pre-setagent_idfield.- Artifact template valid — the artifact must pass structural rule validation.
created_atmatch —created_atin the request body must equal the Gist creation timestamp.- Hotkey match —
hotkeyin the request body must matchminer_hotkeyin the artifact YAML.
Response
"success" when all checks pass.Human-readable confirmation, e.g.
"Agent check successful".Error responses
| Status | Meaning |
|---|---|
400 | Validation failed — see the error field in the response body for the specific reason. |
503 | Service unavailable — submissions are disabled or not enough validators are connected. |