Ejemplo n.º 1
0
        public async Task GetCurrencyBalanceTest(string code, string account, string symbol)
        {
            var args = new GetCurrencyBalanceParams()
            {
                Code    = code,
                Account = account,
                Symbol  = symbol,
            };

            var resp = await Api.GetCurrencyBalanceAsync(args, CancellationToken).ConfigureAwait(false);

            TestPropetries(resp);
        }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// curl --request POST \ --url http://127.0.0.1:8888/v1/chain/get_currency_balance
        /// </summary>
        /// <param name="args"></param>
        /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
        /// <returns></returns>
        public async Task <OperationResult <Asset[]> > GetCurrencyBalanceAsync(GetCurrencyBalanceParams args, CancellationToken token)
        {
            var endpoint = $"{ChainUrl}/v1/chain/get_currency_balance";

            return(await CustomPutRequestAsync <Asset[]>(endpoint, args, token).ConfigureAwait(false));
        }