public async Task <object> GetTransactionEndTime(Hash transactionHash) { var endTime = await TransactionEndTimes.GetValue(transactionHash); Api.Return(new BytesValue() { Value = ByteString.CopyFrom(endTime) }); return(endTime); }
public async Task <object> GetBalance(Hash account) { var balBytes = await Balances.GetValue(account); Api.Return(new UInt64Value() { Value = balBytes.ToUInt64() }); return(balBytes.ToUInt64()); }