Skip to main content

JS Kit SDK API Reference / Bindings / burnDomain

Function: burnDomain()

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

Defined in: bindings/burnDomain.ts:50

Builds an instruction to burn a top-level .sns domain.

Parameters

params

BurnDomainParams

Burn parameters

Returns

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

Transaction instruction.

Example

const instruction = await burnDomain({ domain: "example.sns", owner, refundAddress });