Skip to main content

/v1/accounts/{address}/resource/{resource_type} REST API Endpoint

Retrieves an individual resource from the specified account at a particular ledger version. If the ledger version is not explicitly provided in the request, the latest ledger version is used.

Updated on
Oct 4, 2023

/v1/accounts/{address}/resource/{resource_type} REST API Endpoint

Path Parameters

address
string
REQUIRED
The address associated with the account.
resource_type
string
REQUIRED
The name of the struct to retrieve

Query Parameters

ledger_version
string
The ledger version to retrieve account state

Returns

type
The string representation of on-chain Move struct type
data
The additional data or information related to the account resource
authentication_key
The authentication key associated with the account to verify the identity of account owner
coin_register_events
The events associated with coin registration for the specified response
counter
The counter value associated with a particular operation
guid
The unique identifier (GUID) of the resource
id
The resource identifier
addr
The address associated with the resource
creation_num
The creation number of the resource
self_address
The address associated with the account for which the resources are being retrieved
sequence_number
The sequence number tracks the order of transactions initiated by the account
Request
1
curl -X 'GET' 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/accounts/0x190d44266241744264b964a37b8f09863167a12d3e70cda39376cfb4e3561e12/resource/0x1::account::Account' \
2
-H 'Content-Type: application/json'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free