theseus/dev/show-tlds-bch.mjs
2026-09-12 00:07:42 +02:00

7 lines
361 B
JavaScript

// Dump the full records payload of tlds.bch (the on-chain TLD registry).
import WebSocket from "ws";
import { resolveName, CHIPNET_ELECTRUM } from "../../Argus/src/lib/resolver-web.js";
const OURS = CHIPNET_ELECTRUM[0];
const entry = await resolveName("tlds.bch", { WebSocket, electrum: [OURS], directIP: true });
console.log(JSON.stringify(entry, null, 2));