---
title: Transactions
slug: transactions
docTags: 
createdAt: 2024-09-23T11:51:58.282Z
---

Methods connected to blockchain transactions

## raw\_transactions

Access to all TON transactions.

In our database we store these transactions fields: [Transactions and account states](docId\:eyz0E5xtfhBvFDtMJlIve)&#x20;

Using this method you can filter data by any of these fields and also request any of thedse fields. In addition you can apply [Filters](docId\:rHVeu_Zku7nuX31BZcvGH), [Aggregations](docId\:g2frc13tQ_lBipzcEkBAc) and [Pagination](docId\:StS2MBzwWCthj9OnU9RUB).

:::GraphiQL
```json
{
  "endpoint": "https://dton.io/graphql/",
  "query": "{\n  raw_transactions(\n    address__friendly: \"UQCMOXxD-f8LSWWbXQowKxqTr3zMY-X1wMTyWp3B-LR6syif\",\n    page_size: 10\n  ) {\n    gen_utime\n    hash\n  }\n}\n"
}
```
:::

## transactionsCount

Simple method returning total number of transactions in blockchain

:::GraphiQL
```json
{
  "endpoint": "https://dton.io/graphql/",
  "query": "{\n  transactionsCount\n}"
}
```
:::

## accountTransactionCount

Returns number transactions for account

:::GraphiQL
```json
{
  "endpoint": "https://dton.io/graphql/",
  "query": "{\n  accountTransactionCount(address_friendly: \"UQCMOXxD-f8LSWWbXQowKxqTr3zMY-X1wMTyWp3B-LR6syif\",\n)\n}"
}
```
:::

## lastTransactionCountSegments

&#x20;Return transactions count by days, splited by 1 of 3 available ranges.

Filters:

1. `days [int]` - for how many days you want to get data
2. `segmentation [string]` - `"hour", "minute", "day"`segment by which you want to split data
3. Any other transaction field [Data structure](docId\:sV69IgJSkZqwyIFkef2YU)&#x20;
4. [Pagination](docId\:StS2MBzwWCthj9OnU9RUB) is available

:::GraphiQL
```json
{
  "endpoint": "https://dton.io/graphql/",
  "query": "{\n  lastTransactionCountSegments(\n    days: 2\n    segmentation: \"minute\"\n  ) {\n    segment\n    cnt\n  } \n}"
}
```
:::

## lastTransactionCount

Returns total amunt of reansactions for last 24 hours.

:::GraphiQL
```json
{
  "endpoint": "https://dton.io/graphql/",
  "query": "{\n  lastTransactionCount\n}"
}
```
:::

