Skip to Content

getSolanaAddressName()

getSolanaAddressName(address): Promise<string>

Defined in: utils/getSolanaAddressName.ts:58 

Searches and returns the account name (label) for a given Solana address. Priority order:

  1. Check cache
  2. Try to resolve SNS domain name
  3. Fall back to original address

Parameters

address

string

The Solana account address to look up.

Returns

Promise<string>

A promise that resolves to the account’s name/label, or the original address string if no name is found.

Last updated on