本文整理了Java中org.web3j.protocol.core.Request.<init>
方法的一些代码示例,展示了Request.<init>
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.<init>
方法的具体详情如下:
包路径:org.web3j.protocol.core.Request
类名称:Request
方法名:<init>
暂无
代码示例来源:origin: web3j/web3j
@Override
public Request<?, ParityAddressesResponse> parityGetNewDappsAddresses() {
return new Request<>(
"parity_getNewDappsAddresses",
Collections.<String>emptyList(),
web3jService,
ParityAddressesResponse.class);
}
代码示例来源:origin: web3j/web3j
@Override
public Request<?, BooleanResponse> parityKillAccount(String accountId, String password) {
return new Request<>(
"parity_killAccount",
Arrays.asList(accountId, password),
web3jService,
BooleanResponse.class);
}
代码示例来源:origin: web3j/web3j
@Override
public Request<?, ParityListRecentDapps> parityListRecentDapps() {
return new Request<>(
"parity_listRecentDapps",
Collections.<String>emptyList(),
web3jService,
ParityListRecentDapps.class);
}
代码示例来源:origin: web3j/web3j
@Override
public Request<?, BooleanResponse> minerStop() {
return new Request<>(
"miner_stop",
Collections.<String>emptyList(),
web3jService,
BooleanResponse.class);
}
代码示例来源:origin: web3j/web3j
@Override
public Request<?, NetVersion> netVersion() {
return new Request<>(
"net_version",
Collections.<String>emptyList(),
web3jService,
NetVersion.class);
}
代码示例来源:origin: web3j/web3j
@Override
public Request<?, EthGetBlockTransactionCountByHash> ethGetBlockTransactionCountByHash(
String blockHash) {
return new Request<>(
"eth_getBlockTransactionCountByHash",
Arrays.asList(blockHash),
web3jService,
EthGetBlockTransactionCountByHash.class);
}
代码示例来源:origin: web3j/web3j
@Override
public Request<?, org.web3j.protocol.core.methods.response.EthSendTransaction>
ethSendTransaction(
Transaction transaction) {
return new Request<>(
"eth_sendTransaction",
Arrays.asList(transaction),
web3jService,
org.web3j.protocol.core.methods.response.EthSendTransaction.class);
}
代码示例来源:origin: web3j/web3j
@Override
public Request<?, org.web3j.protocol.core.methods.response.EthSendTransaction>
ethSendRawTransaction(
String signedTransactionData) {
return new Request<>(
"eth_sendRawTransaction",
Arrays.asList(signedTransactionData),
web3jService,
org.web3j.protocol.core.methods.response.EthSendTransaction.class);
}
代码示例来源:origin: web3j/web3j
@Override
public Request<?, EthEstimateGas> ethEstimateGas(Transaction transaction) {
return new Request<>(
"eth_estimateGas",
Arrays.asList(transaction),
web3jService,
EthEstimateGas.class);
}
代码示例来源:origin: web3j/web3j
@Override
public Request<?, EthCompileLLL> ethCompileLLL(String sourceCode) {
return new Request<>(
"eth_compileLLL",
Arrays.asList(sourceCode),
web3jService,
EthCompileLLL.class);
}
代码示例来源:origin: web3j/web3j
@Override
public Request<?, EthLog> ethGetLogs(
org.web3j.protocol.core.methods.request.EthFilter ethFilter) {
return new Request<>(
"eth_getLogs",
Arrays.asList(ethFilter),
web3jService,
EthLog.class);
}
代码示例来源:origin: web3j/web3j
@Override
public Request<?, BooleanResponse> clicqueDiscard(String address) {
return new Request<>(
"clique_discard",
Arrays.asList(address),
web3jService,
BooleanResponse.class);
}
代码示例来源:origin: web3j/web3j
@Override
public Request<?, PantheonFullDebugTraceResponse> debugTraceTransaction(
String transactionHash, Map<String, Boolean> options) {
return new Request<>(
"debug_traceTransaction",
Arrays.asList(transactionHash, options),
web3jService,
PantheonFullDebugTraceResponse.class);
}
}
代码示例来源:origin: web3j/web3j
@Override
public Request<?, MinerStartResponse> minerStart() {
return new Request<>(
"miner_start",
Collections.<String>emptyList(),
web3jService,
MinerStartResponse.class);
}
代码示例来源:origin: web3j/web3j
@Override
public Request<?, PantheonEthAccountsMapResponse> cliqueProposals() {
return new Request<>(
"clique_proposals",
Collections.<String>emptyList(),
web3jService,
PantheonEthAccountsMapResponse.class);
}
代码示例来源:origin: web3j/web3j
public Flowable<PendingTransactionNotification> newPendingTransactionsNotifications() {
return web3jService.subscribe(
new Request<>(
"eth_subscribe",
Arrays.asList("newPendingTransactions"),
web3jService,
EthSubscribe.class),
"eth_unsubscribe",
PendingTransactionNotification.class
);
}
代码示例来源:origin: web3j/web3j
@Override
public Request<?, EthGetBlockTransactionCountByNumber> ethGetBlockTransactionCountByNumber(
DefaultBlockParameter defaultBlockParameter) {
return new Request<>(
"eth_getBlockTransactionCountByNumber",
Arrays.asList(defaultBlockParameter.getValue()),
web3jService,
EthGetBlockTransactionCountByNumber.class);
}
代码示例来源:origin: web3j/web3j
@Override
public Request<?, EthLog> ethGetFilterChanges(BigInteger filterId) {
return new Request<>(
"eth_getFilterChanges",
Arrays.asList(Numeric.toHexStringWithPrefixSafe(filterId)),
web3jService,
EthLog.class);
}
代码示例来源:origin: web3j/web3j
@Override
public Request<?, ShhMessages> shhGetFilterChanges(BigInteger filterId) {
return new Request<>(
"shh_getFilterChanges",
Arrays.asList(Numeric.toHexStringWithPrefixSafe(filterId)),
web3jService,
ShhMessages.class);
}
代码示例来源:origin: web3j/web3j
protected <T extends Response> T deserialiseResponse(Class<T> type) {
T response = null;
try {
response = web3jService.send(new Request(), type);
} catch (IOException e) {
fail(e.getMessage());
}
return response;
}
内容来源于网络,如有侵权,请联系作者删除!