Skip to main content

JavaScript SDK API Reference / Twitter / getTwitterRegistry

Function: getTwitterRegistry()

getTwitterRegistry(connection, twitter_handle): Promise<NameRegistryState>

Defined in: twitter/getTwitterRegistry.ts:19

Retrieves the user-facing name registry for a Twitter handle.

Parameters​

connection​

Connection

Solana RPC connection

twitter_handle​

string

Twitter handle without the @ prefix

Returns​

Promise<NameRegistryState>

Name registry associated with the Twitter handle

Example​

const registry = await getTwitterRegistry(connection, "bonfida");