public class RPC
extends java.lang.Object
implements org.web3j.protocol.core.Batcher
Modifier and Type | Field and Description |
---|---|
Klay |
klay
The API class related accounts, blocks, transactions, nodes.
|
Net |
net
The API class used to query network configuration.
|
Constructor and Description |
---|
RPC(org.web3j.protocol.Web3jService web3jService)
Constructor for RPC
|
Modifier and Type | Method and Description |
---|---|
Klay |
getKlay()
Getter for Klay API instance.
|
Net |
getNet()
Getter for Net API instance
|
org.web3j.protocol.Web3jService |
getWeb3jService()
Getter for web3jService
|
org.web3j.protocol.core.BatchRequest |
newBatch()
Returns a new
BatchRequest |
void |
setWeb3jService(org.web3j.protocol.Web3jService web3jService)
Setter for web3jService
|
public Klay klay
public Net net
public RPC(org.web3j.protocol.Web3jService web3jService)
web3jService
- JSON-RPC service instancepublic org.web3j.protocol.Web3jService getWeb3jService()
public void setWeb3jService(org.web3j.protocol.Web3jService web3jService)
web3jService
- Web3jService instance.public Klay getKlay()
public Net getNet()
public org.web3j.protocol.core.BatchRequest newBatch()
BatchRequest
newBatch
in interface org.web3j.protocol.core.Batcher