private async Task <TransactionBlock> GetLatestBlockAsync() { var blockResult = await _node.GetLastBlockAsync(_accountId); if (blockResult.ResultCode == APIResultCodes.Success) { return(blockResult.GetBlock() as TransactionBlock); } else { return(null); } }
public async Task <BlockAPIResult> GetLastBlockAsync(string AccountId) { if (!CheckServiceStatus()) { return(null); } return(await _node.GetLastBlockAsync(AccountId)); }