gasCoinFromEffects function

SuiObjectRef? gasCoinFromEffects(
  1. SuiTransactionBlockResponse response
)

The gas coin reference from a transaction's effects (the mutated gas object), or null if effects were not returned.

Implementation

SuiObjectRef? gasCoinFromEffects(SuiTransactionBlockResponse response) {
  return response.effects?.gasObject.reference;
}