Beispiel #1
0
        async Task <AccountHeightAPIResult> INodeAPI.GetSyncHeight()
        {
            var request = new SimpleRequest();
            var result  = await GetSyncHeightAsync(request);

            var ret = new AccountHeightAPIResult()
            {
                ResultCode = result.ResultCode,
                NetworkId  = result.NetworkId,
                Height     = result.Height,
                SyncHash   = result.SyncHash
            };

            return(ret);
        }
Beispiel #2
0
        async Task <AccountHeightAPIResult> INodeAPI.GetAccountHeight(string AccountId, string Signature)
        {
            var request = new StandardWalletRequest()
            {
                AccountId = AccountId,
                Signature = Signature
            };
            var result = await GetAccountHeightAsync(request);

            var ret = new AccountHeightAPIResult()
            {
                ResultCode = result.ResultCode,
                NetworkId  = result.NetworkId,
                SyncHash   = result.SyncHash,
                Height     = result.Height,
            };

            return(ret);
        }