Basenames are an essential onchain building block that empowers builders to establish their identity on Base by registering human-readable names for their wallet addresses. They operate entirely onchain, utilizing the same technology as ENS names, and are deployed on Base. You can integrate Basenames into your app with these few steps.Documentation Index
Fetch the complete documentation index at: https://base-a060aa97-pat-schemav2-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
New to OnchainKit?
Follow the Getting Started guide to install the package.
React components with <Avatar> and <Name>
Use the <Avatar> and <Name> components to display Basenames associated with Ethereum addresses.
The chain prop is optional and setting to Base, it’s what makes the components switch from ENS to Basenames.
React hooks with useAvatar and useName
Use the useAvatar and useName hooks to get Basenames associated with Ethereum addresses.
The hooks are incredibly useful for building custom components while leveraging OnchainKit for efficient data fetching.
Typescript utility with getAvatar and getName
Use the getAvatar and getName functions to get Basenames associated with Ethereum addresses.
Being pure functions, it seamlessly integrates into any TypeScript project, including Vue, Angular, Svelte, or Node.js.