getReferenceGasPrice

abstract suspend fun getReferenceGasPrice(): <Error class: unknown class><GetReferenceGasPriceQuery.Data?, <Error class: unknown class>>

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