@Test public void testShhPost() throws Exception { web3j.shhPost(new ShhPost( "0x04f96a5e25610293e42a73908e93ccc8c4d4dc0edcfa9fa872f50cb214e08ebf61a03e245533f97284d442460f2998cd41858798ddfd4d661997d3940272b717b1", "0x3e245533f97284d442460f2998cd41858798ddf04f96a5e25610293e42a73908e93ccc8c4d4dc0edcfa9fa872f50cb214e08ebf61a0d4d661997d3940272b717b1", Arrays.asList("0x776869737065722d636861742d636c69656e74", "0x4d5a695276454c39425154466b61693532"), "0x7b2274797065223a226d6", Numeric.toBigInt("0x64"), Numeric.toBigInt("0x64"))).send(); verifyResult("{\"jsonrpc\":\"2.0\",\"method\":\"shh_post\",\"params\":[{\"from\":\"0x04f96a5e25610293e42a73908e93ccc8c4d4dc0edcfa9fa872f50cb214e08ebf61a03e245533f97284d442460f2998cd41858798ddfd4d661997d3940272b717b1\",\"to\":\"0x3e245533f97284d442460f2998cd41858798ddf04f96a5e25610293e42a73908e93ccc8c4d4dc0edcfa9fa872f50cb214e08ebf61a0d4d661997d3940272b717b1\",\"topics\":[\"0x776869737065722d636861742d636c69656e74\",\"0x4d5a695276454c39425154466b61693532\"],\"payload\":\"0x7b2274797065223a226d6\",\"priority\":\"0x64\",\"ttl\":\"0x64\"}],\"id\":1}"); }
public T send() throws IOException { return web3jService.send(this, responseType); }
Request { public T send() throws IOException { return web3jService.send(this, responseType); } }
Request { public T send() throws IOException { return web3jService.send(this, responseType); } Request();  Request(String method, List<S> params,
                   Web3jService web3jService, Class<T> type); }
Request { public T send() throws IOException { return web3jService.send(this, responseType); } Request();  Request(String method, List<S> params,
                   Web3jService web3jService, Class<T> type); String getJsonrpc(); void setJsonrpc(String jsonrpc); String getMethod(); void setMethod(String method); List<S> getParams(); void setParams(List<S> params); long getId(); void setId(long id); T send(); CompletableFuture<T> sendAsync(); Observable<T> observable(); }
Request { public T send() throws IOException { return web3jService.send(this, responseType); } Request();  Request(String method, List<S> params,
                   Web3jService web3jService, Class<T> type); String getJsonrpc(); void setJsonrpc(String jsonrpc); String getMethod(); void setMethod(String method); List<S> getParams(); void setParams(List<S> params); long getId(); void setId(long id); T send(); CompletableFuture<T> sendAsync(); Observable<T> observable();  }