Table

interface Table

An interface for querying Aptos Table related data.

Inheritors

Properties

Link copied to clipboard
abstract val config: AptosConfig

Functions

Link copied to clipboard
inline suspend fun <T> Table.getTableItem(handle: String, data: TableItemRequest, param: LedgerVersionQueryParam? = null): Result<T, AptosSdkError>

Retrieves a specific item from a table, identified by the table's handle and the item's key.

Link copied to clipboard
abstract suspend fun getTableItemsData(filter: TableItemFilter, sortOrder: List<TableItemSortOrder>? = null, page: PaginationArgs? = null, minimumLedgerVersion: Long? = null): Result<GetTableItemsDataQuery.Data?, AptosIndexerError>

Queries for table items data with optional filtering and pagination.

Link copied to clipboard
abstract suspend fun getTableItemsMetadata(filter: TableMetadataFilter, sortOrder: List<TableMetadataSortOrder>? = null, page: PaginationArgs? = null, minimumLedgerVersion: Long? = null): Result<GetTableItemsMetadataQuery.Data?, AptosIndexerError>

Queries for the metadata of table items, allowing for filtering and pagination.