Web3JS Online
Viem Online
The labelhash function takes a ENS label as input and generates a hashed version of that label. The hashed label can be used for various purposes, such as storing the label in a database or comparing it with other labels.
The function takes a single parameter, name, which is the ENS label to be hashed. The function returns the hashed label as a string.
It's important to note that ENS labels can have certain forbidden characters and validation rules, so it's recommended to normalize ENS labels with UTS-46 normalization before passing them to labelhash. The built-in normalize function can be used for this.
The labelhash function is useful for a variety of use cases, such as:
Overall, the labelhash function is a useful tool for working with ENS labels in a secure and efficient manner.
Webhooks, Alerts, and a simple API.