---
title: "Get account resources"
method: GET
path: "/accounts/{address}/resources"
tags: ["accounts", "state"]
---

# Get account resources

`GET /accounts/{address}/resources`

## Path parameters

- `address` string, address, required — Hex-encoded 16 bytes Aptos account address. Prefixed with `0x` and leading zeros are trimmed. See [doc](https://diem.github.io/move/address.html) for more details.

## Query parameters

- `version` string, uint64 — The version of the latest transaction in the ledger.

## Response `200`

This API returns account resources for a specific ledger version (AKA transaction version).
If not present, the latest version is used.

The Aptos nodes prune account state history, via a configurable time window (link).

If the requested data has been pruned, the server responds with a 404

- AccountResource[]
  - `type` string, move_type, required — String representation of an on-chain Move struct type. It is a combination of: 1. `Move module address`, `module name` and `struct name` joined by `::`. 2. `struct generic type parameters` joined by `, `. Examples: * `0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>` * `0x1::account::Account` Note: 1. Empty chars should be ignored when comparing 2 struct tag ids. 2. When used in an URL path, should be encoded by url-encoding (AKA percent-encoding). See [doc](https://diem.github.io/move/structs-and-resources.html) for more details.
  - `data` object, required — Account resource data is JSON representation of the Move struct `type`. Move struct field name and value are serialized as object property name and value.

## Other responses

- `400` — Bad request due to a client error: invalid request headers, parameters or body. Client should not retry the request without modification.
- `404` — Resource or data not found. Client may retry the request if it is waiting for transaction execution or ledger synchronization.
- `500` — Server internal error, caused by unexpected issues.

---

[API](https://skmtc.dev/apscan/apis/aptos-dev-api-specification.md) · [All operations](https://skmtc.dev/apscan/apis/aptos-dev-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apscan/aptos-dev-api-specification/revisions/45caa72817c2/schema)
