Return the health of the wallet headless.
GET/health
Return the health of the wallet headless.
Request
Query Parameters
wallet_ids string
Wallet ids to check, comma-separated. If not provided, will not check any wallet.
include_fullnode boolean
Whether fullnode health should be checked and included in the response.
include_tx_mining boolean
Whether tx mining service health should be checked and included in the response.
Responses
- 200
- 400
- 503
A JSON with the health object. It will contain info about all components that were enabled and provided wallet ids.
- application/json
- Schema
- success
Schema
any
Success
{
"status": "pass",
"description": "Wallet-headless health",
"checks": {
"Wallet <wallet-id>": [
{
"status": "pass",
"componentType": "internal",
"componentName": "Wallet <wallet-id>",
"output": "Wallet is ready"
}
],
"Wallet <wallet-id-2>": [
{
"status": "pass",
"componentType": "internal",
"componentName": "Wallet <wallet-id-2>",
"output": "Wallet is ready"
}
],
"fullnode": [
{
"status": "pass",
"componentType": "fullnode",
"componentName": "Fullnode <fullnode_url>",
"output": "Fullnode is responding"
}
],
"txMining": [
{
"status": "pass",
"componentType": "service",
"componentName": "TxMiningService <tx_mining_url>",
"output": "Tx Mining Service is healthy"
}
]
}
}
A JSON object with the reason for the error.
- application/json
- Schema
- invalid-wallet-ids
- no-component-included
Schema
any
Invalid wallet id
{
"success": false,
"message": "Invalid wallet id parameter."
}
No component was included in the request
{
"success": false,
"message": "At least one component must be included in the health check"
}
A JSON with the health object. It will contain info about all components that were checked.
- application/json
- Schema
- unhealthy
Schema
any
Unhealthy wallet headless
{
"status": "fail",
"description": "Wallet-headless health",
"checks": {
"Wallet <wallet-id>": [
{
"status": "pass",
"componentType": "internal",
"componentName": "Wallet <wallet-id>",
"output": "Wallet is ready"
}
],
"Wallet <wallet-id-2>": [
{
"status": "pass",
"componentType": "internal",
"componentName": "Wallet <wallet-id-2>",
"output": "Wallet is ready"
}
],
"fullnode": [
{
"status": "fail",
"componentType": "fullnode",
"componentName": "Fullnode <fullnode_url>",
"output": "Fullnode reported as unhealthy: <fullnode response>"
}
],
"txMining": [
{
"status": "pass",
"componentType": "service",
"componentName": "TxMiningService <tx_mining_url>",
"output": "Tx Mining Service is healthy"
}
]
}
}
Loading...