Show / Hide Table of Contents

Delegate StateGetter<T>

An intermediary delegate for AccountStateGetter.

Namespace: Libplanet.Action
Assembly: Libplanet.dll
Syntax
public delegate IValue? StateGetter<T>(Address address, BlockHash? hashDigest, StateCompleter<T> stateCompleter)
    where T : IAction, new();
Parameters
Type Name Description
Address address

The address of an account to read the state from.

Nullable<BlockHash> hashDigest

The address of a block to read the state from.

StateCompleter<T> stateCompleter

The StateCompleter<T> to use.

Returns
Type Description
Nullable<IValue>

The account state if exists. Otherwise null.

Type Parameters
Name Description
T

An IAction type. It should match to BlockChain<T>'s type parameter.

Remarks

If an account state at the given address has never been set by the evaluation up to the Block<T> with Hash of hashDigest, returns null instead of throwing an exception.

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium