Folding API
Last updated
Last updated
The Folding API provides a HTTP interface for external clients to interact with Mainframe (Subnet 25). It enables programmatic submission of protein folding jobs, querying job status, and retrieving results from the network of validators and miners that perform protein folding simulations. It is implemented using FastAPI and integrates with several core components of the subnet system.
Maintains a registry of available validators on the network, tracks their status, and provides methods to select validators based on availability and stake.
Interfaces with the Bittensor blockchain to synchronize the metagraph and retrieve validator information.
Uses API keys for authentication and rate limiting of requests.
When a client submits a folding job request, the following sequence occurs:
The API uses several core data models defined using Pydantic: