raw table item - Movement

Returns a single table item by its raw (BCS-encoded) key — the lower-level counterpart to get table item, used when the key is already serialized.

Endpoint

POST /v1/tables/{table_handle}/raw_item

Path Parameters

ParameterTypeDescription
table_handlestringTable handle (0x-prefixed)

Query Parameters

ParameterTypeDescription
ledger_versionstringRead at a specific ledger version

Example

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

curl -X POST "${MOVEMENT_REST}v1/tables/0x1234abcd.../raw_item" \
  -H "Content-Type: application/json" \
  -d '{"key_type": "0x1::string::String", "value_type": "u128", "key": "0x0548656c6c6f"}'

Response

json"1500000000"

Response Fields

FieldTypeDescription
(root)variesThe decoded table value for the given raw (BCS) key

Use Cases

  • Low-Level Lookups: Read a table item with a BCS-encoded key

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