This README documents the API endpoints for querying main domains by Solana pubkey, both individually and in batch.
Website: https://alldomains.id
This README documents the API endpoints for querying main domains by Solana pubkey, both individually and in batch.
Website: https://alldomains.id
This document provides client-side usage details for three API endpoints related to domain querying for AllDomains on the Monad Testnet network. Each endpoint is a GET request, designed to retrieve domain-related information. Below, you'll find detailed descriptions, parameters, response formats, and examples for each endpoint, formatted for clarity and ease of use.
https://monad.alldomains.id/api/domain-owner/[domain]
GET
useWalletModal()
and add the WalletModalProvider
in the app const [listedWallets, collapsedWallets] = useMemo(() => {
const installed: Wallet[] = [];
/** | |
* @module all-domain-service | |
* utility functions for managing svm domain names | |
*/ | |
import { | |
ANS_PROGRAM_ID, | |
TLD_HOUSE_PROGRAM_ID, | |
getHashedName, | |
NameRecordHeader, |
import { Keypair, PublicKey } from '@solana/web3.js'; | |
import * as argon2 from 'argon2'; | |
import crypto from 'crypto'; | |
import { sign } from 'tweetnacl'; | |
interface KeygenParams { | |
passCode: string; | |
appName: string; | |
userId?: string; // Optional unique identifier |
export type RetryConfig = { | |
maxAttempts?: number; | |
initialDelay?: number; | |
maxDelay?: number; | |
backoffFactor?: number; | |
onRetry?: (error: Error, attempt: number) => void; | |
}; | |
export async function retryOnFailure<T>( | |
operation: () => Promise<T>, |
import { AccountInfo, Connection, PublicKey } from "@solana/web3.js"; | |
import { deserialize, Schema } from "borsh"; | |
/** | |
* Holds the data for the {@link NameRecordHeader} Account and provides de/serialization | |
* functionality for that data | |
*/ | |
export class NameRecordHeaderRaw { | |
// only for normal domains, tld name record might not be working. | |
static async create( |
import { | |
Commitment, | |
Connection, | |
Context, | |
RpcResponseAndContext, | |
SignatureResult, | |
SignatureStatus, | |
TransactionSignature, | |
} from "@solana/web3.js"; |
import { | |
ANS_PROGRAM_ID, | |
findNameHouse, | |
findNftRecord, | |
getHashedName, | |
getNameAccountKeyWithBump, | |
getParentAccountFromTldHouseAccountInfo, | |
getTldFromTldHouseAccountInfo, | |
NameRecordHeader, | |
NftRecord, |
import { MainDomain, NameAccountAndDomain, TldParser } from "@onsol/tldparser"; | |
import { Connection, PublicKey } from "@solana/web3.js"; | |
/** | |
* Validates and resolves an Eclipse address or domain to a PublicKey. | |
* Mostly used in searches. | |
* Ideally the value is debounced on typing | |
* | |
* This function can handle two types of input: | |
* 1. An Eclipse domain (e.g., "miester.turbo") |