Delegate FungibleAssetStateCompleter<T>
A delegate to be called when GetBalance(Address, Currency, Nullable<HashDigest<SHA256>>, FungibleAssetStateCompleter<T>) method encounters a block having incomplete dirty states. GetBalance(Address, Currency, Nullable<HashDigest<SHA256>>, FungibleAssetStateCompleter<T>) method returns this delegate's return value instead for such case.
Namespace: Libplanet.Blockchain
Assembly: Libplanet.dll
Syntax
public delegate FungibleAssetValue FungibleAssetStateCompleter<T>(BlockChain<T> blockChain, HashDigest<SHA256> blockHash, Address address, Currency currency)
where T : IAction, new();
Parameters
Type | Name | Description |
---|---|---|
BlockChain<T> | blockChain | The blockchain to query. |
HashDigest<SHA256> | blockHash | The hash of a block to lacks its dirty states. |
Address | address | The account to query its balance. |
Currency | currency | The currency to query. |
Returns
Type | Description |
---|---|
FungibleAssetValue | A complement balance value. Its Currency
must match to the given |
Type Parameters
Name | Description |
---|---|
T | An IAction type. It should match to BlockChain<T>'s type parameter. |