Web3JS Online
Viem Online
The getEnsText function retrieves a text record associated with a given ENS name and key. It does this by calling the resolve function on the ENS Universal Resolver Contract, which returns the text record for the given name and key.
The function takes an ENS name and key as input, and returns the text record associated with that name and key. If the name and key do not have a text record assigned, the function returns null.
The function also allows for specifying a block number or block tag to perform the read against, as well as an optional universalResolverAddress to specify the address of the ENS Universal Resolver Contract.
The getEnsText function is useful for retrieving text records associated with ENS names and keys, which can be useful in a variety of contexts, such as when building Ethereum-based applications or when working with ENS names in general. It's important to note that ENS names can have certain forbidden characters and validation rules, so it's recommended to normalize ENS names with UTS-46 normalization before passing them to getEnsText. The built-in normalize function can be used for this.
Webhooks, Alerts, and a simple API.