TableService

interface TableService

REST and indexer table operations exposed as client.tables.

Functions

Link copied to clipboard
open suspend fun getItem(handle: String, keyType: String, valueType: String, key: Boolean, ledgerVersion: ULong? = null): AptosResult<JsonElement>

Reads a table value whose Move key is a boolean.

open suspend fun getItem(handle: String, keyType: String, valueType: String, key: Number, ledgerVersion: ULong? = null): AptosResult<JsonElement>

Reads a table value whose Move key is represented as a JSON number.

open suspend fun getItem(handle: String, keyType: String, valueType: String, key: String, ledgerVersion: ULong? = null): AptosResult<JsonElement>

Reads a table value whose Move key is represented as a JSON string.

abstract suspend fun getItem(handle: String, keyType: String, valueType: String, key: JsonElement, ledgerVersion: ULong? = null): AptosResult<JsonElement>

Reads one table value from REST, optionally at ledgerVersion.

Link copied to clipboard
abstract suspend fun getItems(handle: String, page: PageRequest = PageRequest()): AptosResult<AptosSlice<TableItem>>

Returns a typed page of indexed writes for handle.

Link copied to clipboard
abstract suspend fun getMetadata(handle: String, page: PageRequest = PageRequest()): AptosResult<AptosSlice<TableMetadata>>

Returns indexed Move type metadata for handle.