Beispiel #1
0
 public async Task <BlockAPIResult> GetTokenGenesisBlockAsync(string AccountId, string TokenTicker, string Signature)
 {
     if (!CheckServiceStatus())
     {
         return(null);
     }
     return(await _node.GetTokenGenesisBlockAsync(AccountId, TokenTicker, Signature));
 }
        private async Task <string[]> GetProperTokenNameAsync(string[] tokenNames)
        {
            var result = await tokenNames.SelectAsync(async a => await _node.GetTokenGenesisBlockAsync(AccountId, a, null));

            return(result.Select(a => a.GetBlock() as TokenGenesisBlock)
                   .Select(b => b?.Ticker)
                   .OrderBy(a => a)
                   .ToArray());
        }