@Test
public void testSendTransaction() throws Exception {
web3j.ethSendTransaction(
new PrivateTransaction(
"FROM",
BigInteger.ONE,
BigInteger.TEN,
"TO",
BigInteger.TEN,
"DATA",
"privateFrom",
Arrays.asList("privateFor1", "privateFor2")
)
).send();
verifyResult("{\"jsonrpc\":\"2.0\",\"method\":\"eth_sendTransaction\",\"params\":[{\"from\":\"FROM\",\"to\":\"TO\",\"gas\":\"0xa\",\"value\":\"0xa\",\"data\":\"0xDATA\",\"nonce\":\"0x1\",\"privateFrom\":\"privateFrom\",\"privateFor\":[\"privateFor1\",\"privateFor2\"]}],\"id\":1}");
}