public async Task AllAccounts() { ResultOfQueryCollection result = await _tonClient.Net.QueryCollection(new ParamsOfQueryCollection { Collection = "accounts", Filter = new { }.ToJsonElement(), Result = "id balance" }); result.Result.Should().NotBeNullOrEmpty(); }
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); }
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(); }