ens_lookup

Last updated:

0 purchases

ens_lookup Image
ens_lookup Images
Add to Cart

Description:

ens lookup

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');
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.