Example #1
0
        public async Task list_vesting_delegations()
        {
            var args = new ListVestingDelegationsArgs
            {
                Order = SortOrderType.ByDelegation,
                Start = new object[0],
                Limit = 3
            };
            var resp = await Api.ListVestingDelegationsAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Example #2
0
        public void list_vesting_delegations()
        {
            var args = new ListVestingDelegationsArgs()
            {
                Order = SortOrderType.ByDelegation,
                Start = new object[0],
                Limit = 3
            };
            var resp = Api.ListVestingDelegations(args, CancellationToken.None);

            WriteLine(resp);
            Assert.IsFalse(resp.IsError);

            var obj = Api.CustomGetRequest <JObject>(KnownApiNames.DatabaseApi, "list_vesting_delegations", args, CancellationToken.None);

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
Example #3
0
 /// <summary>
 /// API name: list_vesting_delegations
 ///
 /// </summary>
 /// <param name="args">API type: list_vesting_delegations_args</param>
 /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
 /// <returns>API type: list_vesting_delegations_return</returns>
 /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
 public Task <JsonRpcResponse <ListVestingDelegationsReturn> > ListVestingDelegations(ListVestingDelegationsArgs args, CancellationToken token)
 {
     return(CustomGetRequest <ListVestingDelegationsReturn>(KnownApiNames.DatabaseApi, "list_vesting_delegations", args, token));
 }