Movement Labs LogoMovement Docs
Node API

Get raw table item

Get a table item at a specific ledger version from the table identified by {table_handle} in the path and the "key" (RawTableItemRequest) provided in the request body.

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.

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.

POST
/tables/{table_handle}/raw_item

Path Parameters

table_handlestring

Table handle hex encoded 32-byte string

Formathex

Query Parameters

ledger_version?string

Ledger version to get state of account

If not provided, it will be the latest version

Formatuint64
keyHexEncodedBytes

All bytes (Vec) data is represented as hex-encoded string prefixed with 0x and fulfilled with two hex digits per byte.

Unlike the Address type, HexEncodedBytes will not trim any zeros.

Formathex

Response Body

curl -X POST "https://full.mainnet.movementinfra.xyz/v1/tables/0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1 /raw_item?ledger_version=32425224034" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1 "
  }'
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
}