public Optional<Integer> getIndex() {
    return transactionWithMetadata.getTransactionIndex();
  }
Returns the index of the transaction.

@return the index of the transaction.
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/internal/pojoadapter/TransactionAdapter.java