Movement Labs LogoMovement Docs
Node API

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.

GET
/accounts/{address}/resource/{resource_type}

Path Parameters

addressstring

Address of account with or without a 0x prefix

Formathex
resource_typestring

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

Match^0x[0-9a-zA-Z:_<>]+$

Query Parameters

ledger_version?string

Ledger version to get state of account

If not provided, it will be the latest version

Formatuint64

Response Body

curl -X GET "https://full.mainnet.movementinfra.xyz/v1/accounts/0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1 /resource/0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>?ledger_version=32425224034"
{
  "type": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>",
  "data": {
    "authentication_key": "0x0000000000000000000000000000000000000000000000000000000000000001",
    "coin_register_events": {
      "counter": "0",
      "guid": {
        "id": {
          "addr": "0x1",
          "creation_num": "0"
        }
      }
    },
    "self_address": "0x1",
    "sequence_number": "0"
  }
}
{
  "message": "string",
  "error_code": "account_not_found",
  "vm_error_code": 0
}
{
  "message": "string",
  "error_code": "account_not_found",
  "vm_error_code": 0
}
{
  "message": "string",
  "error_code": "account_not_found",
  "vm_error_code": 0
}
{
  "message": "string",
  "error_code": "account_not_found",
  "vm_error_code": 0
}
{
  "message": "string",
  "error_code": "account_not_found",
  "vm_error_code": 0
}
{
  "message": "string",
  "error_code": "account_not_found",
  "vm_error_code": 0
}