struct Blockfrost::Block

Included Modules

Defined in:

blockfrost/cardano/block.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.in_epoch_in_slot(epoch_number : Int32, slot_number : Int32) : Block #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.addresses(hash_or_number : Int32 | String, count : Int32? = nil, page : Int32? = nil) #

[View source]
def self.addresses(hash_or_number : Int32 | String, pages : Range) #

[View source]
def self.get(hash_or_number : Int32 | String) #

[View source]
def self.in_slot(slot_number : Int32) #

[View source]
def self.latest #

[View source]
def self.latest_tx_ids(**args) #

[View source]
def self.next(hash_or_number : Int32 | String, count : Int32? = nil, page : Int32? = nil) #

def self.next(hash_or_number : Int32 | String, pages : Range) #

def self.previous(hash_or_number : Int32 | String, count : Int32? = nil, page : Int32? = nil) #

def self.previous(hash_or_number : Int32 | String, pages : Range) #

def self.tx_ids(hash_or_number : Int32 | String, order : QueryOrder | String? = nil, count : Int32? = nil, page : Int32? = nil) #

[View source]
def self.tx_ids(hash_or_number : Int32 | String, pages : Range, order : QueryOrder | String? = nil) #

[View source]

Instance Method Detail

def addresses(**args) #

[View source]
def block_vrf : String? #

[View source]
def confirmations : Int32 #

[View source]
def epoch : Int32? #

[View source]
def epoch_slot : Int32? #

[View source]
def fees : Int128? #

[View source]
def hash : String #
Description copied from class Object

Generates an UInt64 hash value for this object.

This method must have the property that a == b implies a.hash == b.hash.

The hash value is used along with == by the Hash class to determine if two objects reference the same hash key.

Subclasses must not override this method. Instead, they must define hash(hasher), though usually the macro def_hash can be used to generate this method.


[View source]
def height : Int32? #

[View source]
def next(**args) #

def next_block : String? #

[View source]
def op_cert : String? #

[View source]
def op_cert_counter : Int128? #

[View source]
def output : Int128? #

[View source]
def previous(**args) #

def previous_block : String? #

[View source]
def size : Int32 #

[View source]
def slot : Int32? #

[View source]
def slot_leader : String #

[View source]
def time : Time #

[View source]
def tx_count : Int32 #

[View source]
def tx_ids(**args) #

[View source]