Skip to content

<Name />

The Name component is used to display ENS names associated with Ethereum addresses.

Usage

Address with an ENS:

code
import { Name } from '@coinbase/onchainkit/identity';
<Name address="0x02feeb0AdE57b6adEEdE5A4EEea6Cf8c21BeB6B1" />; 

Address with an ENS name, showing his address sliced:

code
import { Name } from '@coinbase/onchainkit/identity';
<Name address="0x02feeb0AdE57b6adEEdE5A4EEea6Cf8c21BeB6B1" showAddress />; 

Address without an ENS name, and it defaults to his sliced address:

code
import { Name } from '@coinbase/onchainkit/identity';
<Name address="0x1234567890abcdef1234567890abcdef12345678" />; 

Props

NameReact