Developers
Use the Helyx Names SDK to look up a .gl1 name’s EVM address or an address’s primary .gl1 name on Genesis L1. The resolver SDK provides read-only access to the deployed mainnet registry.
Network and configuration
- Network
- Genesis L1 EVM
- Chain ID
- 29
- Namespace
.gl1- GL1Names 5.1
0x37fC8a647Ef9b366ee9c9181Ca739439c9d292DF
Keep src/js/resolver-sdk.js, src/js/registry.js, and src/js/abi/GL1Names.v5.1.json in their repository layout. Import the SDK from a browser ES module served over HTTPS or localhost, or from an ES module on Node.js 22 or later.
Supply the registry address and a Genesis L1 rpcUrl that supports block-hash-pinned reads. Remote URLs require HTTPS. HTTP is allowed for localhost, 127.0.0.1, and [::1] for development. The SDK rejects embedded credentials and redirects. Browser requests need CORS access from your site.
You can supply a trusted provider with request({ method, params }) in place of rpcUrl. When you inject a provider, its configuration controls the transport. Choose a provider whose transport and chain data you trust.
The SDK reads from one RPC source. It checks the chain ID and registry runtime fingerprint and pins each lookup to a block reported by that source. The source may serve stale or inaccurate state even when the bytecode matches. The frontend's transaction settlement policy separately requires agreement from FirstTensor and Vicky.
Forward and reverse lookups
This example is a module at the repository root. Pass the verified deployment address, your RPC URL, and the EVM address you want to look up.
import {
createGl1Resolver
} from './src/js/resolver-sdk.js';
export async function lookup(
contractAddress, rpcUrl, address
) {
const resolver =
await createGl1Resolver({
contractAddress, rpcUrl
});
const destination = await resolver
.resolveGl1('example.gl1');
const primaryName = await resolver
.reverseResolveGl1(address);
return {
destination, primaryName
};
}
Forward lookup accepts a lowercase .gl1 name or bare label. Both methods return null when the contract has no active resolution for the input. Invalid inputs, RPC failures, a wrong chain ID, and mismatched registry bytecode produce errors. The SDK uses read-only calls and requires no wallet connection or transaction signing.