---
title: Accounts
slug: accounts
docTags: 
createdAt: 2024-09-23T11:51:55.135Z
---

AccountStates in our database are in fact just last transaction for each account in blockchain so all fields of AccountState model are the same as Transaction model [Transactions and account states](docId\:eyz0E5xtfhBvFDtMJlIve)&#x20;

## raw\_account\_states

Returns the latest transaction (with block and account state inside) for each account on network, including deleted ones.

Using this method you can filter data by any of [model fields](docId\:eyz0E5xtfhBvFDtMJlIve) 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_account_states(workchain: -1){\n    hash\n    address\n  }\n}"
}
```
:::

