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

@param environment the data fetching environment.
@return an Optional containing a Wei object representing the effective tip of the transaction,
    or an empty Optional if the transaction does not specify an effective tip.
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/internal/pojoadapter/TransactionAdapter.java