Retrieves all account resources for a given account and 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.
Accounts
Get_Account_Resources is an example object payload from Aptos, with 9 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
{
"method": "GET",
"path": "/accounts/{address}/resources",
"operationId": "get_account_resources",
"summary": "Get account resources",
"description": "Retrieves all account resources for a given account and a specific ledger version. If the\nledger version is not specified in the request, the latest ledger version is used.\n\nThe Aptos nodes prune account state history, via a configurable time window.\nIf the requested ledger version has been pruned, the server responds with a 410.",
"tags": [
"Accounts"
],
"parameters": [
{
"name": "address",
"in": "path",
"required": true,
"description": "Address of account with or without a `0x` prefix",
"schema": {
"$ref": "#/components/schemas/Address"
}
},
{
"name": "ledger_version",
"in": "query",
"required": false,
"description": "Ledger version to get state of account\n\nIf not provided, it will be the latest version",
"schema": {
"$ref": "#/components/schemas/U64"
}
},
{
"name": "start",
"in": "query",
"required": false,
"description": "Cursor specifying where to start for pagination\n\nThis cursor cannot be derived manually client-side. Instead, you must\ncall this endpoint once without this query parameter specified, and\nthen use the cursor returned in the X-Aptos-Cursor header in the\nresponse.",
"schema": {
"$ref": "#/components/schemas/StateKeyWrapper"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"description": "Max number of account resources to retrieve\n\nIf not provided, defaults to default page size.",
"schema": {
"type": "integer",
"format": "uint16"
}
}
],
"requestBody": null,
"responses": {
"200": {
"contentType": "application/json",
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MoveResource"
}
},
"example": {}
},
"400": {
"contentType": "application/json",
"schema": {
"$ref": "#/components/schemas/AptosError"
},
"example": {}
},
"403": {
"contentType": "application/json",
"schema": {
"$ref": "#/components/schemas/AptosError"
},
"example": {}
},
"404": {
"contentType": "application/json",
"schema": {
"$ref": "#/components/schemas/AptosError"
},
"example": {}
},
"410": {
"contentType": "application/json",
"schema": {
"$ref": "#/components/schemas/AptosError"
},
"example": {}
},
"500": {
"contentType": "application/json",
"schema": {
"$ref": "#/components/schemas/AptosError"
},
"example": {}
},
"503": {
"contentType": "application/json",
"schema": {
"$ref": "#/components/schemas/AptosError"
},
"example": {}
}
}
}