JavaScript SDK API Reference / Twitter / getTwitterHandleandRegistryKeyViaFilters
Function: getTwitterHandleandRegistryKeyViaFilters()
getTwitterHandleandRegistryKeyViaFilters(
connection,verifiedPubkey):Promise<[string,PublicKey]>
Defined in: twitter/getTwitterHandleandRegistryKeyViaFilters.ts:28
Retrieves a Twitter handle and registry key through an RPC program-account query.
RPC filtering performance varies by provider.
Parameters
connection
Connection
Solana RPC connection used for the program-account query.
verifiedPubkey
PublicKey
Verified public key to find.
Returns
Promise<[string, PublicKey]>
The Twitter handle and its user-facing registry address.
Throws
When no matching reverse registry is found.
Example
const [handle, registry] = await getTwitterHandleandRegistryKeyViaFilters(connection, owner);