getChainIdentifier

abstract suspend fun getChainIdentifier(): <Error class: unknown class><GetChainIdentifierQuery.Data?, <Error class: unknown class>>

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

This identifier is unique to the specific Sui chain.

Return

A Result which is either:

  • Ok: Containing a nullable GetChainIdentifierQuery.Data object with the chain identifier.

  • Err: Containing a SuiError object with a list of SdkErrorDetails.