Skip to main content

JavaScript SDK API Reference / Twitter / createReverseTwitterRegistry

Function: createReverseTwitterRegistry()

createReverseTwitterRegistry(connection, twitterHandle, twitterRegistryKey, verifiedPubkey, payerKey): Promise<TransactionInstruction[]>

Defined in: twitter/createReverseTwitterRegistry.ts:45

Builds instructions to create the reverse registry for a verified Twitter handle.

The Twitter verification authority must authorize the resulting registry writes.

Parameters

connection

Connection

Solana RPC connection used to calculate rent-exemption costs.

twitterHandle

string

Verified Twitter handle for the reverse registry.

twitterRegistryKey

PublicKey

User-facing registry address for the handle.

verifiedPubkey

PublicKey

Verified public key associated with the handle.

payerKey

PublicKey

Signer that funds the reverse registry account.

Returns

Promise<TransactionInstruction[]>

Instructions that create and populate the reverse registry.

Example

const instructions = await createReverseTwitterRegistry(
connection,
"bonfida",
registry,
owner,
payer,
);