table item - Movement

Returns a single item from a Move table by its key. The body specifies the key type, value type, and the key value. Tables back large key-value stores in Move.

Endpoint

httpPOST /v1/tables/{table_handle}/item

Path Parameters

ParameterTypeDescription
table_handlestringTable handle (0x-prefixed), obtained from the owning resource

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.../item" \
  -H "Content-Type: application/json" \
  -d '{"key_type": "address", "value_type": "u128", "key": "0xabc..."}'

Response

json"1500000000"

Response Fields

FieldTypeDescription
(root)variesThe table value for the given key, decoded per value_type

Use Cases

  • Collections: Read one entry of an on-chain table by key
  • dApp State: Look up table-backed records

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