Package io.keyko.nevermined.external
Class FaucetService
- java.lang.Object
-
- io.keyko.nevermined.external.FaucetService
-
public class FaucetService extends Object
Service for Gateway's Integration
-
-
Field Summary
Fields Modifier and Type Field Description private static StringFAUCET_URIprivate static org.apache.logging.log4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description FaucetService()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FaucetResponserequestEthFromFaucet(String faucetUrl, String address)Requests Network ETH to the faucet for paying the transactions gas
-
-
-
Field Detail
-
log
private static final org.apache.logging.log4j.Logger log
-
FAUCET_URI
private static final String FAUCET_URI
- See Also:
- Constant Field Values
-
-
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 endpointaddress- address requesting ETH from the faucet- Returns:
- FaucetResponse
- Throws:
ServiceException- if there is an error communicating with the Faucet
-
-