General

interface General

General interface

This interface represents the general API

Inheritors

Properties

Link copied to clipboard
abstract val config: SuiConfig

Functions

Link copied to clipboard
abstract suspend fun getChainIdentifier(): Option<String>

Get the first 4 bytes of the chain's genesis checkpoint digest.

Link copied to clipboard
abstract suspend fun getCheckpoint(checkpointId: CheckpointId? = CheckpointId()): Option<Checkpoint?>

Get a checkpoint

Link copied to clipboard

Get the latest Sui system state

Link copied to clipboard
abstract suspend fun getProtocolConfig(protocolVersion: Int? = null): Option<ProtocolConfig>

Get the protocol config

Link copied to clipboard
abstract suspend fun getReferenceGasPrice(): Option<String?>

Get the reference gas price

Link copied to clipboard
inline suspend fun <T> General.query(query: GraphqlQuery): T