示例#1
0
        public async Task AllAccounts()
        {
            ResultOfQueryCollection result = await _tonClient.Net.QueryCollection(new ParamsOfQueryCollection
            {
                Collection = "accounts",
                Filter     = new { }.ToJsonElement(),
                Result     = "id balance"
            });

            result.Result.Should().NotBeNullOrEmpty();
        }
示例#2
0
        public async Task Ranges()
        {
            ResultOfQueryCollection result = await _tonClient.Net.QueryCollection(new ParamsOfQueryCollection
            {
                Collection = "messages",
                Filter     = new { created_at = new { gt = 1562342740 } }.ToJsonElement(),
                Result     = "body created_at"
            });

            Assert.NotEmpty(result.Result);
            Assert.True(result.Result?[0].Get <ulong>("created_at") > 1562342740);
        }
示例#3
0
        public async Task BlockSignatures()
        {
            ResultOfQueryCollection result = await _tonClient.Net.QueryCollection(new ParamsOfQueryCollection
            {
                Collection = "blocks_signatures",
                Filter     = new { }.ToJsonElement(),
                Result     = "id",
                Limit      = 1
            });

            result.Should().NotBeNull();
        }