examples/7nodes/samples/send-private-txn-java/src/main/java/com/quorum/web3j/example/SendRawPrivateTransactionExternalSigning.java
private static byte[] signTransactionUsingWeb3j(int nonce, int gasPrice, int gasLimit, int value, String data, Credentials credentials){
        RawTransaction rawTransaction = RawTransaction.createContractTransaction(BigInteger.valueOf(nonce),
                BigInteger.valueOf(gasPrice), BigInteger.valueOf(gasLimit), BigInteger.valueOf( value), data);
        return TransactionEncoder.signMessage(rawTransaction, credentials);
    }
// REPLACE THIS WITH YOUR MECHANISM FOR SIGNING TRANSACTIONS
REPLACE THIS WITH YOUR MECHANISM FOR SIGNING TRANSACTIONS
REPLACE THIS WITH YOUR MECHANISM FOR SIGNING TRANSACTIONS
private static byte[] signTransactionUsingWeb3j(int nonce, int gasPrice, int gasLimit, int value, String data, Credentials credentials){
        RawTransaction rawTransaction = RawTransaction.createContractTransaction(BigInteger.valueOf(nonce),
                BigInteger.valueOf(gasPrice), BigInteger.valueOf(gasLimit), BigInteger.valueOf( value), data);
        return TransactionEncoder.signMessage(rawTransaction, credentials);
    }
private static byte [ ] signTransactionUsingWeb3j ( int nonce , int gasPrice , int gasLimit , int value , String data , Credentials credentials ) { RawTransaction rawTransaction = RawTransaction . createContractTransaction ( BigInteger . valueOf ( nonce ) , BigInteger . valueOf ( gasPrice ) , BigInteger . valueOf ( gasLimit ) , BigInteger . valueOf ( value ) , data ) ; return TransactionEncoder . signMessage ( rawTransaction , credentials ) ; }
REPLACE THIS WITH YOUR MECHANISM FOR SIGNING TRANSACTIONS
REPLACE THIS WITH YOUR MECHANISM FOR SIGNING TRANSACTIONS