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