struct Blockfrost::Block
- Blockfrost::Block
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
blockfrost/cardano/block.crConstructors
Class Method Summary
- .addresses(hash_or_number : Int32 | String, count : Int32 | Nil = nil, page : Int32 | Nil = nil)
- .addresses(hash_or_number : Int32 | String, pages : Range)
- .get(hash_or_number : Int32 | String)
- .in_slot(slot_number : Int32)
- .latest
- .latest_tx_ids(**args)
- .next(hash_or_number : Int32 | String, count : Int32 | Nil = nil, page : Int32 | Nil = nil)
- .next(hash_or_number : Int32 | String, pages : Range)
- .previous(hash_or_number : Int32 | String, count : Int32 | Nil = nil, page : Int32 | Nil = nil)
- .previous(hash_or_number : Int32 | String, pages : Range)
- .tx_ids(hash_or_number : Int32 | String, order : QueryOrder | String | Nil = nil, count : Int32 | Nil = nil, page : Int32 | Nil = nil)
- .tx_ids(hash_or_number : Int32 | String, pages : Range, order : QueryOrder | String | Nil = nil)
Instance Method Summary
- #addresses(**args)
- #block_vrf : String | Nil
- #confirmations : Int32
- #epoch : Int32 | Nil
- #epoch_slot : Int32 | Nil
- #fees : Int128 | Nil
-
#hash : String
Generates an
UInt64
hash value for this object. - #height : Int32 | Nil
- #next(**args)
- #next_block : String | Nil
- #op_cert : String | Nil
- #op_cert_counter : Int128 | Nil
- #output : Int128 | Nil
- #previous(**args)
- #previous_block : String | Nil
- #size : Int32
- #slot : Int32 | Nil
- #slot_leader : String
- #time : Time
- #tx_count : Int32
- #tx_ids(**args)
Constructor Detail
Class Method Detail
def self.addresses(hash_or_number : Int32 | String, count : Int32 | Nil = nil, page : Int32 | Nil = nil)
#
def self.next(hash_or_number : Int32 | String, count : Int32 | Nil = nil, page : Int32 | Nil = nil)
#
def self.previous(hash_or_number : Int32 | String, count : Int32 | Nil = nil, page : Int32 | Nil = nil)
#
def self.tx_ids(hash_or_number : Int32 | String, order : QueryOrder | String | Nil = nil, count : Int32 | Nil = nil, page : Int32 | Nil = nil)
#
def self.tx_ids(hash_or_number : Int32 | String, pages : Range, order : QueryOrder | String | Nil = nil)
#
Instance Method Detail
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.