ChainTree class final

A built family of chains driven in process. produce anchors children upward automatically; ChainTreeQueries.proveAccount proves any descendant from the root header.

Implemented types
Available extensions

Properties

hashCode → int
The hash code for this object.
no setterinherited
isReleased → bool
Whether the native handle has already been released.
no setterinherited
onFinalized ↔ FinalizedHook?
Observes every finalized block.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
txSource ↔ TxSource?
Supplies transactions when a chain produces.
getter/setter pair

Methods

chainIds() → List<int>

Available on ChainTree, provided by the ChainTreeQueries extension

The family's chain ids, parents first.
free() → void
Releases the native tree and its hooks.
genesis(int chainId) → Uint8List

Available on ChainTree, provided by the ChainTreeQueries extension

The final genesis of a chain, with policy and binding committed.
height(int chainId) → int

Available on ChainTree, provided by the ChainTreeQueries extension

The height of a chain.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pendingAnchors(int chainId) → int

Available on ChainTree, provided by the ChainTreeQueries extension

How many anchors the next block on a chain would carry.
produce(int chainId, int timestamp) → Uint8List
Produces and finalizes the next block on chainId.
produceRound(int timestamp) → List<Uint8List>

Available on ChainTree, provided by the ChainTreeRounds extension

Produces one block on every chain, children before parents, so each parent anchors what its children just finalized. Returns the blocks in that order.
proveAccount(int chainId, Uint8List address) → Uint8List

Available on ChainTree, provided by the ChainTreeQueries extension

A cross chain proof of address on chainId from the root header.
snapshot() → Uint8List

Available on ChainTree, provided by the ChainTreeQueries extension

The whole family as one snapshot: every chain's ledger, consensus state and archive. It holds no secret key; restore it with AviaryPersistence.restoreChainTree and the same root node.
tip(int chainId) → Uint8List

Available on ChainTree, provided by the ChainTreeQueries extension

The current tip header of a chain.
toString() → String
A string representation of this object.
inherited
verify(Uint8List proof) → bool
Whether proof is committed by the root's current header.

Operators

operator ==(Object other) → bool
The equality operator.
inherited