account resource - Movement

Returns a single Move resource under an account, addressed by its fully-qualified type. Use it to read one resource (such as a specific coin store) directly.

Endpoint

httpGET /v1/accounts/{address}/resource/{resource_type}

Path Parameters

ParameterTypeDescription
addressstringAccount address (0x-prefixed)
resource_typestringFully-qualified resource type, e.g. 0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>

Query Parameters

ParameterTypeDescription
ledger_versionstringRead at a specific ledger version

Example

bashexport MOVEMENT_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${MOVEMENT_REST}v1/accounts/0x1/resource/0x1::coin::CoinStore%3C0x1::aptos_coin::AptosCoin%3E"

Response

json{
    "type": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>",
    "data": {
        "coin": {
            "value": "1500000000"
        },
        "frozen": false
    }
}

Response Fields

FieldTypeDescription
typestringThe resource type requested
dataobjectDecoded resource fields

Use Cases

  • Balance Reads: Read one account's MOVE coin store
  • dApp State: Fetch a specific Move resource

Error Handling

ErrorMessageDescription
400 / Bad requestBad requestA path, query, or body parameter was invalid
404 / Not foundNot foundThe account, block, transaction, or resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect