pub struct Blocks<N: Network> { /* private fields */ }

Implementations

Initializes a new instance of Blocks with the genesis block.

Returns the latest block height.

Returns the latest block hash.

Returns the latest ledger root.

Returns the latest block timestamp.

Returns the latest block difficulty target.

Returns the latest cumulative weight.

Returns the latest block transactions.

Returns the latest block.

Returns the previous block hash given the block height.

Returns the block header given the block height.

Returns the block transactions given the block height.

Returns the block given the block height.

Returns the block hash given the block height.

Returns true if the given block height exists.

Returns true if the given ledger root exists.

Returns true if the given block hash exists.

Returns true if the given transaction exists.

Returns true if the given serial number exists.

Returns true if the given commitment exists.

Adds the given block as the next block in the chain.

Returns the ledger tree.

Returns an inclusion proof for the ledger tree.

Returns a ledger proof for the given commitment.

Returns the expected difficulty target given the previous block and expected next block details.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.