Interface IBlockChainStates
A minimal interface to get states from a
Note that
Namespace: Libplanet.Action.State
Assembly: Libplanet.Action.dll
Syntax
public interface IBlockChainStates
Methods
| Improve this Doc View SourceGetWorldState(Nullable<HashDigest<SHA256>>)
Returns the IWorldState in the stateRootHash
.
Declaration
IWorldState GetWorldState(HashDigest<SHA256>? stateRootHash)
Parameters
Type | Name | Description |
---|---|---|
Nullable<HashDigest<SHA256>> | stateRootHash | The state root hash for which to create an IWorldState. |
Returns
Type | Description |
---|---|
IWorldState | The IWorldState with |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when no ITrie with
|
See Also
| Improve this Doc View SourceGetWorldState(Nullable<BlockHash>)
Returns the IWorldState in the offset
.
Declaration
IWorldState GetWorldState(BlockHash? offset)
Parameters
Type | Name | Description |
---|---|---|
Nullable<BlockHash> | offset | The BlockHash of the Block to create for which to create an IWorldState. |
Returns
Type | Description |
---|---|
IWorldState | The IWorldState at |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when
|