Blockfrost::Health
Inherits JSON::Serializable < Struct < Value < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceClass methods
clock
This endpoint provides the current time. Your application might use this to verify if the client clock is not out of sync.
Blockfrost::Health.clock.server_time
# => 2020-10-22 21:09:18.947000000 UTC
get
Return backend status as a boolean. Your application should handle situations when backend for the given chain is unavailable.
Blockfrost::Health.get.is_healthy
# => true
server_time
Alias for .clock.server_time.
Blockfrost::Health.server_time
# => 2020-10-22 21:09:18.947000000 UTC
Instance methods
is_healthy
Source