---
title: "aggregated messages"
method: GET
path: "/messages/aggregated"
tags: ["transaction"]
---

# aggregated messages

`GET /messages/aggregated`

Aggregates receivers and senders

## Query parameters

- `address` string, required
- `order_by` 'amount' | 'count', required
- `from` string
- `to` string
- `limit` integer

## Response `200`

OK

- AggregateMessagesRes
  - `received_count` integer
  - `received_from_address` object[]
    - `amount` BunbigInt
    - `count` integer
    - `sender` integer[]
  - `received_ton_amount` BunbigInt
  - `sent_count` integer
  - `sent_to_address` object[]
    - `amount` BunbigInt
    - `count` integer
    - `receiver` integer[]
  - `sent_ton_amount` BunbigInt

## Changes

- **2024-02-16** `227382d0120b` — 2 info
  - added the new optional `query` request parameter `from`
  - added the new optional `query` request parameter `to`
- **2023-03-23** `ce5ece08d742` — 2 breaking
  - the `query` request parameter `address` became required
  - the `query` request parameter `order_by` became required
- **2023-03-23** `02d1a3c26a8c` — 1 info
  - endpoint added
- **2023-02-22** `e00c25bb9798` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/tonindexer/apis/anton/changes/messages/aggregated/get.md)

---

[API](https://skmtc.dev/tonindexer/apis/anton.md) · [All operations](https://skmtc.dev/tonindexer/apis/anton/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tonindexer/anton/revisions/a3d3850ec94f/schema)
