Sequoia API Documentation
Overview
The Sequoia API provides endpoints for interacting with the Jackal Protocol storage provider. This documentation outlines all available endpoints, their parameters, and expected responses.
Base Endpoints
GET Methods
Get Provider Status
GET /Returns basic information about the storage provider.
Parameters: None required
Response:- status(string): Current provider status, always returns "online" when available
- address(string): Storage provider's address
Get Version Information
GET /versionRetrieves the current software version information.
Parameters: None required
Response:- version(string): Git tag version (e.g., v1.0.2)
- build(string): Git commit identifier
- chain-id(string): Connected Tendermint chain ID
Download File
GET /downloadDownloads a specific file from the Jackal Protocol.
Parameters:- merkle(hex string): File's merkle hash
- file: The requested file data
List Files
GET /listRetrieves a list of all files stored on the provider.
Parameters: None required
Response:- files(string[]): Array of merkle hashes (in hex format) for all stored files
IPFS-Related Endpoints
List IPFS Peers
GET /ipfs/peersLists all connected IPFS peer IDs.
Parameters: None required
Response:- peers(string[]): Array of base64-encoded IPFS peer IDs
Get Provider Hosts
GET /ipfs/hostsLists all accessible hosts for this storage provider.
Parameters: None required
Response:- hosts(string[]): Array of multiaddrs where the provider is accessible
List IPFS Files
GET /ipfs/cidsRetrieves all files stored as IPFS CIDs.
Parameters: None required
Response:- cids(string[]): Array of IPFS CIDs stored on the provider
Get IPFS/Jackal ID Mapping
GET /ipfs/cid_mapProvides a mapping between Jackal file IDs and IPFS CIDs.
Parameters: None required
Response:- cid_map(object): Key-value pairs mapping file merkles (hex strings) to IPFS CIDs
System Information
Get Database State
GET /dumpExports the complete database state.
Parameters: None required
Response:- dump(object): Complete database state as JSON
Get Metrics
GET /metricsRetrieves Prometheus-formatted metrics.
Parameters: None required
Response:- metrics: Prometheus-formatted metrics data
POST Methods
Upload File
POST /uploadUploads a new file to the Jackal Protocol.
Parameters (multipart form):
- sender(string): Jackal Address
- merkle(hex string): File's merkle root
- start(integer): File deal start block
- merkle(hex string): File's merkle hash
- Owner(string): File deal owner's Jackal address
- Start(integer): File deal start block
- CID(string): IPFS CID for the file
Create IPFS Folder
POST /ipfs/make_folderCreates a new IPFS folder mapping.
Parameters (plaintext):
- Comma-separated list of IPFS CIDs
- CID(string): IPFS CID for the created folder

