getProtocolConfig

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

Fetches the protocol configuration for a specific version.

If no version is provided, the latest protocol configuration is returned.

Return

A Result which is either:

Parameters

protocolVersion

An optional integer for the protocol version to query.