public Long getNonce() {
    return transactionWithMetadata.getTransaction().getNonce();
  }
Returns the nonce of the transaction.

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