public class EnsResolver
extends java.lang.Object
Constructor and Description |
---|
EnsResolver(Web3j web3j) |
EnsResolver(Web3j web3j,
long syncThreshold) |
Modifier and Type | Method and Description |
---|---|
long |
getSyncThreshold() |
static boolean |
isValidEnsName(java.lang.String input) |
PublicResolver |
obtainPublicResolver(java.lang.String ensName)
Provides an access to a valid public resolver in order to access other API methods.
|
java.lang.String |
resolve(java.lang.String contractId) |
java.lang.String |
reverseResolve(java.lang.String address)
Reverse name resolution as documented in the
specification.
|
void |
setSyncThreshold(long syncThreshold) |
public EnsResolver(Web3j web3j, long syncThreshold)
public EnsResolver(Web3j web3j)
public void setSyncThreshold(long syncThreshold)
public long getSyncThreshold()
public PublicResolver obtainPublicResolver(java.lang.String ensName)
ensName
- our user input ENS namepublic java.lang.String resolve(java.lang.String contractId)
public java.lang.String reverseResolve(java.lang.String address)
address
- an ethereum address, example: "0x314159265dd8dbb310642f98f50c066173c1259b"public static boolean isValidEnsName(java.lang.String input)