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 Viem.Usage
UsegetEnsName to retrieve the primary ENS name for an address on Base:
getBasename.ts