Beranames Docs
  • 🐻OVERVIEW
    • Introducing Beranames
    • Key Components
    • Get in Touch
  • 😎USING BERANAMES
    • Beranames Lifecycle
    • Registering a Beraname
    • Pricing
  • 🧠RESOLVERS
    • Forward Resolution
    • Reverse Resolution
    • Universal Resolver
    • Subdomains
  • Managing other addresses & Contract names
  • 🔨INTEGRATE
    • Contracts & Repositories
    • How to Mint
    • Configure Viem
    • Resolving
    • Listing Beranames on NFT Marketplaces
    • Use Beranames on Metamask
  • 📃RESOURCES
    • Audits
Powered by GitBook
On this page
  1. INTEGRATE

Configure Viem

Make sure to include in your chain configuration the correct addresses.

Please import Berachain Mainnet directly from viem (not from wagmi). Directly use the viem directives like "getEnsName" and "getEnsAddress"

contracts: {
  ensRegistry: {
    address: '0x5b22280886a2f5e09a49bea7e320eab0e5320e28',
  },
  ensUniversalResolver: {
    address: '0xddfb18888a9466688235887dec2a10c4f5effee9',
  },
}

Special Characters

If your name contains special characters it may not resolve correctly due to ENS/viem standards.

It is still possible to mint, but there may be problems in resolving – we do not recommend using Beranames in these case for sending / receiving funds.

PreviousHow to MintNextResolving

Last updated 3 months ago

🔨