Open thobson88 opened 4 days ago
Check whether the IPFS daemon is running with the query_ipfs
function in trustchain-ion::utils
(and a known CID). The result will be an error:
Client(hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 61, kind: ConnectionRefused, message: "Connection refused" })))
To check for MongoDB, use the query_mongodb
function in trustchain-ion::utils
(with a known DID). It returns TrustchainMongodbError::QueryReturnedError
if the daemon is not running.
Get Bitcoin node status by calling get_blockchain_info
on the rpc_client
in trustchain-ion::utils
. This returns a struct containing fields for the number of blocks and headers.
Get ION status by resolving a known DID.
A new command:
that reports something like:
or