core-node REST API

Small REST surface exposed by the TensorCash core-node alongside the JSON-RPC server. Used by the miner-api to query model metadata and node metrics. The full chain surface is the JSON-RPC at /docs/rpc/.

endpoint 6 · OpenAPI 3.1.0 · OpenAPI ཚད་གཞི། (JSON)

རྒྱུན་ཕྲེང་གི་ངོས་ཆ་ཚང་ནི་ JSON-RPC ཡིན། འདི་ནི་ node གི་ཟུར་གྱི་ REST ངོས་ཆུང་ཆུང་ཞིག་ཡིན་ཞིང་། ས་གནས་གཏེར་སྔོག་ API ཡིས་དཔེ་གཟུགས་ཀྱི་ metadata དང་ node metrics ཆེད་སྤྱོད། ཐོན་སྐྱེད་ཁོར་ཡུག་ནང་སྒོ་ 8050།

Endpoint ཁག

GET/

Root

Root endpoint - provides API information.

ལན་འདེབས།

གནས་སྟངས།འགྲེལ་བཤད།ནང་དོན།
200Successful Response
  • application/json any

GET/health

Health Check

Health check endpoint - no auth required.

ལན་འདེབས།

གནས་སྟངས།འགྲེལ་བཤད།ནང་དོན།
200Successful Response
  • application/json any

GET/api/v1/models

Get Models List

Get list of models with rate limiting.

ཚད་གཞི།

མིང་།གནས་ས།རིགས།ངེས་པར་དགོས།འགྲེལ་བཤད།
extendedqueryboolean—

རེ་ཞུའི་ནང་དོན།

ལན་འདེབས།

གནས་སྟངས།འགྲེལ་བཤད།ནང་དོན།
200Successful Response
422Validation Error

GET/api/v1/blockchaininfo

Get Blockchain Info

Pass-through to the node's getblockchaininfo RPC. Used by the verification orchestrator to compute distance-to-verdict for PendingVerification model records and trigger anticipatory smell-stat pre-bake before a model flips to Registered.

རེ་ཞུའི་ནང་དོན།

ལན་འདེབས།

གནས་སྟངས།འགྲེལ་བཤད།ནང་དོན།
200Successful Response
  • application/json any
422Validation Error

GET/api/v1/models/{model_hash}

Get Model Info

Get model information with input validation.

ཚད་གཞི།

མིང་།གནས་ས།རིགས།ངེས་པར་དགོས།འགྲེལ་བཤད།
model_hashpathstringཡིན།

རེ་ཞུའི་ནང་དོན།

ལན་འདེབས།

གནས་སྟངས།འགྲེལ་བཤད།ནང་དོན།
200Successful Response
  • application/json any
422Validation Error

GET/api/v1/miner/metrics

Get Miner Metrics

Get mining throughput metrics from the miner proxy. Returns token throughput (tokens/sec), completion rate, and totals.

རེ་ཞུའི་ནང་དོན།

ལན་འདེབས།

གནས་སྟངས།འགྲེལ་བཤད།ནང་དོན།
200Successful Response
  • application/json any
422Validation Error

གཞི་སྒྲོམ།

HTTPAuthorizationCredentials

The HTTP authorization credentials in the result of using HTTPBearer or HTTPDigest in a dependency. The HTTP authorization header value is split by the first space. The first part is the scheme, the second part is the credentials. For example, in an HTTP Bearer token scheme, the client will send a header like: `` Authorization: Bearer deadbeef12346 ` In this case: * scheme will have the value "Bearer" * credentials will have the value "deadbeef12346"`

ཡིག་ཚན།རིགས།ངེས་པར་དགོས།འགྲེལ་བཤད།
schemestringཡིན།
credentialsstringཡིན།

HTTPValidationError

ཡིག་ཚན།རིགས།ངེས་པར་དགོས།འགྲེལ་བཤད།
detailValidationError[]—

ModelInfo

ཡིག་ཚན།རིགས།ངེས་པར་དགོས།འགྲེལ་བཤད།
model_hashstringཡིན།
model_namestringཡིན།
model_commitstringཡིན།
difficultyintegerཡིན།
statusinteger | null—
cidstring | null—
extrastring | null—
txidstring | null—
block_hashstring | null—
block_heightinteger | null—
deposit_txidstring | null—
deposit_voutinteger | null—
deposit_amountinteger | null—
owner_key_hashstring | null—
deposit_block_hashstring | null—
deposit_block_heightinteger | null—
commit_txidstring | null—
commit_block_hashstring | null—
commit_block_heightinteger | null—
verification_codeinteger | null—
verification_detailsstring | null—

ValidationError

ཡིག་ཚན།རིགས།ངེས་པར་དགོས།འགྲེལ་བཤད།
locstring | integer[]ཡིན།
msgstringཡིན།
typestringཡིན།