Overview
Basenames are human-readable names for addresses on Base. They are built on top of the ENS protocol and comply with ENSIP-19. To learn more about Basenames, check out the Basenames FAQ. This guide will show you how to add support for Basenames to your application using Wagmi and Viem.Wagmi
Before starting, make sure you have set up Wagmi. UseuseEnsName
to fetch the primary ENS name for an address on Base:
Viem
UsegetEnsName
to retrieve the primary ENS name for an address on Base: