public Optional<Wei> getEffectiveGasPrice(final DataFetchingEnvironment environment) {
    return getReceipt(environment)
        .map(rwm -> rwm.getTransaction().getEffectiveGasPrice(rwm.getBaseFee()));
  }
Retrieves the effective gas price of the transaction.

<p>This method uses the getReceipt method to get the receipt of the transaction. It then
returns an Optional containing the effective gas price of the transaction.

@param environment the data fetching environment.
@return an Optional containing a Wei object representing the effective gas price of the
    transaction.
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/internal/pojoadapter/TransactionAdapter.java