Java Code Examples for org.web3j.protocol.core.Request#setId()
The following examples show how to use
org.web3j.protocol.core.Request#setId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EeaSendRawTransaction.java From ethsigner with Apache License 2.0 | 5 votes |
public String request() { final Request<?, ? extends Response<?>> sendRawTransactionRequest = eeaJsonRpc.eeaSendRawTransaction( "0xf90110a0e04d296d2460cfb8472af2c5fd05b5a214109c25688d3704aed5484f9a7792f28609184e72a0008276c094d46e8dd67c5d32be8058bb8eb970870f0724456780a9d46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f07244567536a00b528cefb87342b2097318cd493d13b4c9bd55bf35bf1b3cf2ef96ee14cee563a06423107befab5530c42a2d7d2590b96c04ee361c868c138b054d7886966121a6aa307837353737393139616535646634393431313830656163323131393635663237356364636533313464ebaa3078643436653864643637633564333262653830353862623865623937303837306630373234343536378a72657374726963746564"); sendRawTransactionRequest.setId(77); return Json.encode(sendRawTransactionRequest); }
Example 2
Source File: EeaSendRawTransaction.java From ethsigner with Apache License 2.0 | 5 votes |
public String request(final String value) { final Request<?, ? extends Response<?>> sendRawTransactionRequest = eeaJsonRpc.eeaSendRawTransaction(value); sendRawTransactionRequest.setId(77); return Json.encode(sendRawTransactionRequest); }
Example 3
Source File: SendTransaction.java From ethsigner with Apache License 2.0 | 5 votes |
private Request<?, EthSendTransaction> createRequest(final JsonObject transaction) { final Request<Object, EthSendTransaction> eea_sendTransaction = new Request<>( "eth_sendTransaction", singletonList(transaction), null, EthSendTransaction.class); eea_sendTransaction.setId(DEFAULT_ID); return eea_sendTransaction; }
Example 4
Source File: EeaSendTransaction.java From ethsigner with Apache License 2.0 | 5 votes |
private Request<Object, EthSendTransaction> createRequest(final JsonObject transaction) { final Request<Object, EthSendTransaction> eea_sendTransaction = new Request<>( "eea_sendTransaction", singletonList(transaction), null, EthSendTransaction.class); eea_sendTransaction.setId(DEFAULT_ID); return eea_sendTransaction; }
Example 5
Source File: SendRawTransaction.java From ethsigner with Apache License 2.0 | 5 votes |
public String request() { final Request<?, ? extends Response<?>> sendRawTransactionRequest = jsonRpc.ethSendRawTransaction( "0xf8b2a0e04d296d2460cfb8472af2c5fd05b5a214109c25688d3704aed5484f9a7792f28609184e72a0008276c094d46e8dd67c5d32be8058bb8eb970870f07244567849184e72aa9d46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f07244567535a0f04e0e7b41adea417596550611138a3ec9a452abb6648d734107c53476e76a27a05b826d9e9b4e0dd0e7b8939c102a2079d71cfc27cd6b7bebe5a006d5ad17d780"); sendRawTransactionRequest.setId(77); return Json.encode(sendRawTransactionRequest); }
Example 6
Source File: SendRawTransaction.java From ethsigner with Apache License 2.0 | 5 votes |
public String request(final String value) { final Request<?, ? extends Response<?>> sendRawTransactionRequest = jsonRpc.ethSendRawTransaction(value); sendRawTransactionRequest.setId(77); return Json.encode(sendRawTransactionRequest); }