Example #1
0
        public async Task <string> GetSymbol()
        {
            string name   = string.Empty;
            var    result = await GetTokenSymbol.SendRequestAsync();

            if (result != null)
            {
                var temp = result.Stack[0].Value.ToString();
                name = Helper.HextoString(temp);
            }
            return(name);
        }
Example #2
0
        //TODO: can refractor this more
        public void ChangeTokenScripHash(string tokenScriptHash)
        {
            if (string.IsNullOrEmpty(tokenScriptHash))
            {
                throw new ArgumentNullException(nameof(tokenScriptHash));
            }

            TokenScriptHash = tokenScriptHash;
            GetTokenBalance.ChangeScriptHash(tokenScriptHash);
            GetTokenDecimals.ChangeScriptHash(tokenScriptHash);
            GetTokenName.ChangeScriptHash(tokenScriptHash);
            GetTokenTotalSupply.ChangeScriptHash(tokenScriptHash);
            GetTokenSymbol.ChangeScriptHash(tokenScriptHash);
        }
Example #3
0
        public async Task <string> GetSymbol()
        {
            var result = await GetTokenSymbol.SendRequestAsync().ConfigureAwait(false);

            return(result.Stack[0].Value.ToString());
        }