Index and node tips

GET/health

Wallet API v1.0.0 · Health

Index and node tips, heights with their hashes, so instances can be compared from one call. Two instances at the same height agree when their indexed_hash match. synced is false while the index lags the node by more than one block. When the node cannot serve the index the status is 503 and the body has an extra error field.

Example

curl 'https://api.tensorcash.org/health'

Parameters

No parameters.

Responses

StatusDescriptionBody
200Index state
503The node cannot serve the index; error says why

Schemas

Health

FieldTypeRequiredDescription
network"mainnet" | "testnet" | "regtest"YesNetwork this instance serves.
indexed_heightinteger | nullYesHeight of the index tip the API answers from.
indexed_hashstring | nullYesHash of the index tip.
node_heightinteger | nullYesNode's best height at the indexer's last pass.
node_hashstring | nullYesNode's best block hash at the indexer's last pass.
syncedbooleanYesFalse while the index lags the node by more than one block.
mempool_txsintegerYesTransactions in the indexed mempool copy.
errorstring—Present with status 503: why the node cannot serve the index.
Source
tensorcash-wallet-api (tensorcash-api) v1.0.0 (772799e) · bobponey · MIT