struct Blockfrost::Health

Included Modules

Defined in:

blockfrost/api/health.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

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

[View source]
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

[View source]
def self.is_healthy? #

Alias for .get.is_healthy.

Blockfrost::Health.is_healthy?
# => true

[View source]
def self.server_time #

Alias for .clock.server_time.

Blockfrost::Health.server_time
# => 2020-10-22 21:09:18.947000000 UTC

[View source]

Instance Method Detail

def is_healthy : Bool #

[View source]