Skip to main content

JS Kit SDK API Reference / Bindings / transferSubdomain

Function: transferSubdomain()

transferSubdomain(params): Promise<Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>>

Defined in: bindings/transferSubdomain.ts:51

Builds an instruction to transfer a .sns subdomain.

Parameters

params

TransferSubdomainParams

Transfer parameters

Returns

Promise<Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>>

Transaction instruction.

Example

const instruction = await transferSubdomain({ rpc, subdomain: "sub.example.sns", newOwner });