Interface Web3j

    • Method Detail

      • build

        static Web3j build​(Web3jService web3jService)
        Construct a new Web3j instance.
        Parameters:
        web3jService - web3j service instance - i.e. HTTP or IPC
        Returns:
        new Web3j instance
      • build

        static Web3j build​(Web3jService web3jService,
                           long pollingInterval,
                           java.util.concurrent.ScheduledExecutorService scheduledExecutorService)
        Construct a new Web3j instance.
        Parameters:
        web3jService - web3j service instance - i.e. HTTP or IPC
        pollingInterval - polling interval for responses from network nodes
        scheduledExecutorService - executor service to use for scheduled tasks. You are responsible for terminating this thread pool
        Returns:
        new Web3j instance
      • shutdown

        void shutdown()
        Shutdowns a Web3j instance and closes opened resources.