private string GetId(uint256 txId) { return("tx-" + txId.ToString()); }
public void PutAsync(uint256 trxId, uint256 blockId) { repository.PutAsync(trxId.ToString(), blockId.AsBitcoinSerializable()); }
public Task PutAsync(uint256 blockId, Block block) { return(repository.PutAsync(blockId.ToString(), block)); }
public uint256 GetBlockHash(uint256 trxHash) { return(repository.GetAsync <uint256.MutableUint256>(trxHash.ToString()).Result?.Value); }
public Task <Block> GetBlockAsync(uint256 blockId) { return(repository.GetAsync <Block>(blockId.ToString())); }