healthy - Movement

Returns a health check for the node. Optionally takes a duration_secs query parameter to assert the node has committed a transaction within that window.

Endpoint

httpGET /-/healthy

Query Parameters

ParameterTypeDescription
duration_secsstringMax staleness in seconds the node is allowed before being considered unhealthy

Example

bashexport MOVEMENT_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${MOVEMENT_REST}-/healthy?duration_secs=10"

Response

json{
    "message": "success"
}

Response Fields

FieldTypeDescription
messagestring"success" when the node is healthy

Use Cases

  • Monitoring: Liveness probe for load balancers
  • Staleness Check: Assert recent commit activity

Error Handling

ErrorMessageDescription
400 / Bad requestBad requestA path, query, or body parameter was invalid
404 / Not foundNot foundThe account, block, transaction, or resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect