Skip to main content

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.

The getAddress utility is designed to retrieve an address from an onchain identity provider for a given name.

Usage

Get ENS Name from mainnet chain
import { getAddress } from '@coinbase/onchainkit/identity';

const address = await getAddress({ name: 'zizzamia.eth' });
Get Basename from base chain
import { getAddress } from '@coinbase/onchainkit/identity';
import { base } from 'viem/chains';

const address = await getAddress({ name: 'zizzamia.base.eth', chain: base });

Returns

See GetAddressReturnType and GetAddress for more details.

Parameters

See GetAddressReturnType and GetAddress for more details.