private async Task <TransactionBlock> GetLatestBlockAsync()
        {
            var blockResult = await _node.GetLastBlockAsync(_accountId);

            if (blockResult.ResultCode == APIResultCodes.Success)
            {
                return(blockResult.GetBlock() as TransactionBlock);
            }
            else
            {
                return(null);
            }
        }
示例#2
0
 public async Task <BlockAPIResult> GetLastBlockAsync(string AccountId)
 {
     if (!CheckServiceStatus())
     {
         return(null);
     }
     return(await _node.GetLastBlockAsync(AccountId));
 }