Skip to main content

JavaScript SDK API Reference / Twitter / getTwitterRegistryKey

Function: getTwitterRegistryKey()

getTwitterRegistryKey(twitter_handle): Promise<PublicKey>

Defined in: twitter/getTwitterRegistryKey.ts:17

Derives the user-facing name registry key for a Twitter handle.

Parameters

twitter_handle

string

Twitter handle without the @ prefix

Returns

Promise<PublicKey>

Derived Twitter name-registry account public key

Example

const key = await getTwitterRegistryKey("bonfida");