General

class General(val config: SuiConfig) : General

Constructors

Link copied to clipboard
constructor(config: SuiConfig)

Properties

Link copied to clipboard
open override val config: SuiConfig

Functions

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

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

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

Get a checkpoint by ID

Link copied to clipboard

Get the latest Sui system state

Link copied to clipboard
open suspend override fun getProtocolConfig(protocolVersion: Int?): Option<ProtocolConfig>

Get the protocol config

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

Get the reference gas price of the current epoch

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