General

class General(val config: SuiConfig) : General

The concrete implementation of the General interface.

Parameters

config

The SuiConfig object specifying the RPC endpoint and connection settings.

Constructors

Link copied to clipboard
constructor(config: SuiConfig)

Properties

Link copied to clipboard
open override val config: SuiConfig

Functions

Link copied to clipboard

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

Link copied to clipboard
open suspend override fun getCheckpoint(checkpointId: CheckpointId?): Result<GetCheckpointQuery.Data?, SuiError>

Fetches the details of a specific checkpoint.

Link copied to clipboard
open suspend override fun getCheckpoints(first: Int?, before: String?, last: Int?, after: String?): Result<GetCheckpointsQuery.Data?, SuiError>

Fetches a paginated list of checkpoints.

Link copied to clipboard

Fetches details about the current epoch.

Link copied to clipboard

Fetches the sequence number of the most recently processed checkpoint.

Link copied to clipboard

Fetches the most recent SuiSystemState object.

Link copied to clipboard
open suspend override fun getProtocolConfig(protocolVersion: Int?): Result<GetProtocolConfigQuery.Data?, SuiError>

Fetches the protocol configuration for a specific version.

Link copied to clipboard

Fetches the current reference gas price for the network.

Link copied to clipboard

Fetches a paginated list of transaction blocks for a given checkpoint.

Link copied to clipboard

Fetches a paginated list of validators for a specific epoch.