Class 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
      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
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
      • governance

        public Governance governance
        The API class related governance.
    • Constructor Detail

      • RPC

        public RPC​(org.web3j.protocol.Web3jService web3jService)
        Constructor for RPC
        Parameters:
        web3jService - JSON-RPC service instance
    • 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
      • newBatch

        public org.web3j.protocol.core.BatchRequest newBatch()
        Returns a new BatchRequest
        Specified by:
        newBatch in interface org.web3j.protocol.core.Batcher
        Returns:
        BatchRequest