This Wallet Name resolver library allows you go resolve a Wallet Name using DNS + DNSSEC. Additionally, the library has built-in support for optional TLSA Record validation for Address Service endpoints.
This library relies on the dnssecjava project for DNSSEC validation of the Wallet Name resolution as well as TLSA Record resolution.
This library can be included directly from Maven Central / OSS Sonatype.
<dependency>
<groupId>com.netki</groupId>
<artifactId>wallet-name-resolver</artifactId>
</dependency>
'com.netki:wallet-name-resolver:0.0.2+'
import com.netki.WalletNameResolver;
import com.netki.exceptions.WalletNameLookupException;
public class WalletNameResolverExample {
public static void main(String[] args) throws Exception {
try {
WalletNameResolver resolver = new WalletNameResolver();
String result = resolver.resolve("wallet.mattdavid.xyz", "btc");
System.out.println(String.format("Resolved BTC Address for wallet.mattdavid.xyz: %s", result));
} catch (WalletNameLookupException e) {
e.printStackTrace();
}
}
}