getChainIdentifier

abstract suspend fun getChainIdentifier(): Result<GetChainIdentifierQuery.Data?, SuiError>

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 GraphQLErrors.