getReferenceGasPrice

abstract suspend fun getReferenceGasPrice(): Result<GetReferenceGasPriceQuery.Data?, SuiError>

Fetches the current reference gas price for the network.

The reference gas price is the minimum gas price that will be accepted for a transaction.

Return

A Result which is either:

  • Ok: Containing a nullable GetReferenceGasPriceQuery.Data object with the gas price details.

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