Beispiel #1
0
        public async Task <object> GetTransactionEndTime(Hash transactionHash)
        {
            var endTime = await TransactionEndTimes.GetValue(transactionHash);

            Api.Return(new BytesValue()
            {
                Value = ByteString.CopyFrom(endTime)
            });
            return(endTime);
        }
Beispiel #2
0
        public async Task <object> GetBalance(Hash account)
        {
            var balBytes = await Balances.GetValue(account);

            Api.Return(new UInt64Value()
            {
                Value = balBytes.ToUInt64()
            });
            return(balBytes.ToUInt64());
        }