BENS service extends Blockscout support for name services
MICROSERVICE_BENS_ENABLED
& MICROSERVICE_BENS_URL
env variables.
Some domains are being indexed in a hashed format. What might cause this?
label_hash
of this name. Therefore, the subgraph has to guess the name using a rainbow table (make sure to load ens-rainbow table) OR find this name later in other events, such as handleNameChanged
or any other event that has a name field.Try to determine events with a name field, write code that will update domain name using maybeSaveDomainName()
or other functions you prefer. For example, the ens-subgraph uses the setNamePreimage
function, which performs the same function for second-level-eth domains only.Reverse RecordsIt may also be the case that unknown names are reverse records. These are not resolved by design, and users don’t typically need to see them.How do I launch BENS locally?
docker run --platform linux/x86_64 -p 8050:8050 --rm --name bens --env-file .env
ghcr.io/blockscout/bens:latest
To build locally without docker you should install protoc
and protoc-gen-openapiv2
. A complete guide for a local build is not yet available.What does 'primary' refer to in the Domains dropdown in the Blockscout UI?