tests bage

Simple package to lookup ENS names

EnsLookup allows you to resolve ENS domains and receive Ethereum Addresses with a simple call ensService.resolveName('my.eth')

Inspired by ethers.js resolveName implementation. To learn more about ens domains refer to official documentation This is early stage development so please feel free to reach out or contribute.

Usage

void resolveEnsDomain() async {
  final client = HttpClientWithMiddleware.build(middlewares: [
        HttpLogger(logLevel: LogLevel.BODY),
      ]);

      final ensService = Ens.create(Web3Client(
        'https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161',
        client,
      ));

      final address = await ensService.resolveName('ricmoo.firefly.eth');
}

Libraries

ens_lookup