Skip to content

Instantly share code, notes, and snippets.

View alinalexa's full-sized avatar
🌍
Working remote

Alin Alexa alinalexa

🌍
Working remote
View GitHub Profile
@alinalexa
alinalexa / setAndCloseMainDomain.ts
Last active August 26, 2024 18:01 — forked from crypt0miester/setAndCloseMainDomain.ts
Set and close main domain instructions
import * as beet from "@metaplex-foundation/beet"
import * as web3 from "@solana/web3.js"
import {
ANS_PROGRAM_ID,
findMainDomain,
getHashedName,
getNameAccountKeyWithBump,
TLD_HOUSE_PROGRAM_ID,
ORIGIN_TLD,
} from "@onsol/tldparser"