Get account resource

Retrieves an individual resource from a given account and at a specific ledger version. If the ledger version is not specified in the request, the latest ledger version is used.

The Aptos nodes prune account state history, via a configurable time window. If the requested ledger version has been pruned, the server responds with a 410.

Path Params
string
required

Address of account with or without a 0x prefix

string
required

Name of struct to retrieve e.g. 0x1::account::Account

Query Params
string

Ledger version to get state of account

If not provided, it will be the latest version

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/x-bcs