Class FaucetService


  • public class FaucetService
    extends Object
    Service for Gateway's Integration
    • Field Detail

      • log

        private static final org.apache.logging.log4j.Logger log
    • Constructor Detail

      • FaucetService

        public FaucetService()
    • Method Detail

      • requestEthFromFaucet

        public static FaucetResponse requestEthFromFaucet​(String faucetUrl,
                                                          String address)
                                                   throws ServiceException
        Requests Network ETH to the faucet for paying the transactions gas
        Parameters:
        faucetUrl - Faucet endpoint
        address - address requesting ETH from the faucet
        Returns:
        FaucetResponse
        Throws:
        ServiceException - if there is an error communicating with the Faucet