Package com.klaytn.caver.rpc
Class RPC
- java.lang.Object
-
- com.klaytn.caver.rpc.RPC
-
- All Implemented Interfaces:
org.web3j.protocol.core.Batcher
public class RPC extends java.lang.Object implements org.web3j.protocol.core.Batcher
This class represents JSON-RPC 2.0 Klaytn APIs
-
-
Field Summary
Fields Modifier and Type Field Description Admin
admin
The API class related admin.Governance
governance
The API class related governance.Klay
klay
The API class related accounts, blocks, transactions, nodes.Net
net
The API class used to query network configuration.
-
Constructor Summary
Constructors Constructor Description RPC(org.web3j.protocol.Web3jService web3jService)
Constructor for RPC
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Admin
getAdmin()
Getter for Admin API instanceKlay
getKlay()
Getter for Klay API instance.Net
getNet()
Getter for Net API instanceorg.web3j.protocol.Web3jService
getWeb3jService()
Getter for web3jServiceorg.web3j.protocol.core.BatchRequest
newBatch()
Returns a newBatchRequest
void
setWeb3jService(org.web3j.protocol.Web3jService web3jService)
Setter for web3jService
-
-
-
Field Detail
-
klay
public Klay klay
The API class related accounts, blocks, transactions, nodes.
-
net
public Net net
The API class used to query network configuration.
-
admin
public Admin admin
The API class related admin.
-
governance
public Governance governance
The API class related governance.
-
-
Method Detail
-
getWeb3jService
public org.web3j.protocol.Web3jService getWeb3jService()
Getter for web3jService- Returns:
- Web3jService
-
setWeb3jService
public void setWeb3jService(org.web3j.protocol.Web3jService web3jService)
Setter for web3jService- Parameters:
web3jService
- Web3jService instance.
-
getKlay
public Klay getKlay()
Getter for Klay API instance.- Returns:
- Klay
-
getNet
public Net getNet()
Getter for Net API instance- Returns:
- Net
-
getAdmin
public Admin getAdmin()
Getter for Admin API instance- Returns:
- Admin
-
newBatch
public org.web3j.protocol.core.BatchRequest newBatch()
Returns a newBatchRequest
- Specified by:
newBatch
in interfaceorg.web3j.protocol.core.Batcher
- Returns:
- BatchRequest
-
-