{"repo":"onsol-labs/tld-parser","free":true,"listed":false,"github":"https://github.com/onsol-labs/tld-parser","clone":"git clone https://github.com/onsol-labs/tld-parser.git","description":"TLD Parser is domains resolver on the Solana Blockchain.","language":"TypeScript","stars":20,"topics":["api","blockchain","solana","typescript","wallet"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"TLD Parser A library to parse top-level domain (TLD) names on the Solana blockchain via the Alternative Name Service (ANS) and on EVM-compatible chains (e.g., Monad). This library provides tools to interact with domain names, retrieve ownership details, and manage domain records across supported blockchains. Overview The TLD Parser supports two primary implementations: Solana (SVM): Parses domains on the Solana Virtual Machine using the ANS system. EVM: Parses domains on Ethereum Virtual Machine-compatible chains (currently Monad). The library operates on mainnet for both chains, with devnet values available in the constants.ts file for Solana. Supported Chains Solana (SVM) Eclipse (SVM) Monad (EVM) Installation Add @onsol/tldparser to package.json or yarn add @onsol/tldparser or npm install @onsol/tldparser Usage Examples Below are examples demonstrating key functions for both Solana and EVM implementations. These mirror the test cases provided. Solana (SVM) Examples EVM (Monad) Examples API Reference Core Methods (Available on Both Chains) getAllUserDomains(userAccount) : Retrieves all domains owned by a user. getAllUserDomainsFromTld(userAccount, tld) : Retrieves domains for a specific TLD. getOwnerFromDomainTld(domainTld) : Retrieves the owner of a domain. getNameRecordFromDomainTld(domainTld) : Retrieves detailed record data for a domain. getMainDomain(userAddress) : Retrieves the user's main domain. Records API (Available on Both Chains) getRecord(domainTld, record) : G","default_branch":null,"files":null,"tree":[],"storefront":"/r/onsol-labs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/onsol-labs/tld-parser/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}