ens_lookup 0.3.0 copy "ens_lookup: ^0.3.0" to clipboard
ens_lookup: ^0.3.0 copied to clipboard

Simple package for ENS lookup

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');
}
3
likes
110
pub points
0%
popularity

Publisher

unverified uploader

Simple package for ENS lookup

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

web3dart

More

Packages that depend on ens_lookup