Get table item
Get a table item at a specific ledger version from the table identified by in the path and the “key” (TableItemRequest) provided in the request body.
This is a POST endpoint because the “key” for requesting a specific table item (TableItemRequest) could be quite complex, as each of its fields could themselves be composed of other structs. This makes it impractical to express using query params, meaning GET isn’t an option.
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.
Path Parameters
Table handle hex encoded 32-byte string
"0xc739507214d0e1bf9795485299d709e00024e92f7c0d055a4c2c39717882bdfd"
Query Parameters
Ledger version to get state of account
If not provided, it will be the latest version
"32425224034"
Body
Table Item request for the GetTableItem API
Response
An enum of the possible Move value types