struct Blockfrost::Health
- Blockfrost::Health
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
blockfrost/api/health.crConstructors
Class Method Summary
-
.clock
This endpoint provides the current time.
-
.get
Return backend status as a boolean.
-
.is_healthy?
Alias for
.get.is_healthy
. -
.server_time
Alias for
.clock.server_time
.
Instance Method Summary
Constructor Detail
Class Method Detail
def self.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
def self.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
def self.server_time
#
Alias for .clock.server_time
.
Blockfrost::Health.server_time
# => 2020-10-22 21:09:18.947000000 UTC