Registry
Install
npm install @freezedry/registryUsage
import { Connection } from '@solana/web3.js';
import {
fetchAllNodes,
fetchActiveNodes,
fetchActiveNodesWithIdentity,
fetchNode,
displayName,
PROGRAM_ID,
} from '@freezedry/registry';
const connection = new Connection('https://api.mainnet-beta.solana.com');
// List all registered nodes
const allNodes = await fetchAllNodes(connection);
// Active nodes only (heartbeat within 24h)
const active = await fetchActiveNodes(connection);
// Active nodes enriched with identity data from coordinator
const enriched = await fetchActiveNodesWithIdentity(connection);
for (const node of enriched) {
console.log(`${node.displayName} (${node.identityPubkey}) — ${node.url}`);
}
// Single node by operator wallet
const node = await fetchNode(connection, ownerPubkey);
// Display name from any identity pubkey
const name = displayName('Bh174gGdgo94u41YZYY8c3dSyECM3cDQ1SrpHzpDPYLL');
// → "high-crane"Types
NodeInfo
NodeInfoWithIdentity
Functions
Function
Returns
Description
Last updated
