Generated by DocFX

Class NeblioTransactionsCache

This class will query Neblio API with the input address, stores the BlockHeight from address's latest Utxo in Cache. Cache will expiry for every 10 seconds so when accessed system will check cache and return the latest blockheight

Inheritance
System.Object
NeblioTransactionsCache
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VEDriversLite.NeblioAPI
Assembly: VEDriversLite.NeblioAPI.dll
Syntax
public static class NeblioTransactionsCache

Methods

| Improve this Doc View Source

LatestBlockHeight(String, String)

Method will check if the data for current address is available in cache and returns the blockheight, IF not avaialble then retrievs from API.

Declaration
public static async Task<double> LatestBlockHeight(string utxo, string address)
Parameters
Type Name Description
System.String utxo
System.String address

The address for which we need the latest block height

Returns
Type Description
System.Threading.Tasks.Task<System.Double>
| Improve this Doc View Source

SetChacheValue(String, Object)

Set value in the cache

Declaration
public static void SetChacheValue(string key, object value)
Parameters
Type Name Description
System.String key
System.Object value