Skip to main content

/v1/tables/{table_handle}/raw_item REST API Endpoint

Retrieves a specific table item from the table identified by {table_handle} in the path, using the "key" provided in the request body (RawTableItemRequest), and returns the raw, unprocessed data associated with the identified item at the specified ledger version.

Updated on
Oct 4, 2023

/v1/tables/{table_handle}/raw_item REST API Endpoint

Please note that the get_raw_table_item requires only a serialized key comparing to the full move type information comparing to the get_table_item api, and can only return the query in the bcs format.

Path Parameters

table_handle
string
REQUIRED
The table handle, encoded in 32-byte hexa form

Query Parameters

ledger_version
string
REQUIRED
The ledger version to retrieve the account state

Body Parameters

key
integer
REQUIRED
The value that uniquely identifies the item to be fetched from the table

Returns

result
Returns the raw, unprocessed table item as retrieved from the specified table, providing the original data associated with the identified item
Request
1
curl --request POST \
2
--url https://docs-demo.aptos-mainnet.quiknode.pro/v1/tables/table_handle/raw_item \
3
--header 'Accept: application/json, application/x-bcs' \
4
--header 'Content-Type: application/json' \
5
--data '{
6
"key": "KEY_VALUE"
7
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free