netx-name-resolver
v0.1.3
Published
Resolve .netx names and NetX primary names on NetX Testnet.
Readme
NetX Name Resolver
MetaMask Name Lookup integration for NetX Name Service on NetX Testnet.
Network
- Chain: NetX Testnet (
eip155:587) - Name suffix:
.netx - Name service:
0x962067a3c0b3ACC733c6396823C239c8E9fa3b82
What it resolves
- Forward:
name.netx-> the address returned byresolve(string). - Reverse: an address -> the live primary name returned by
primaryName(address).
The Snap requests network access to read the fixed NetX Testnet RPC endpoint, plus MetaMask's name lookup permission. It does not request account keys, signatures, transaction permissions, or wallet state.
Build and test
npm install --ignore-scripts --workspaces=false
npm run build --workspaces=false
npm test --workspaces=false -- --runInBandLocal MetaMask test
Custom name lookup is a protected MetaMask Snap permission. During development, use MetaMask Flask.
- Install MetaMask Flask in a separate browser profile.
- Build the Snap, then run
npm run serve --workspaces=falsein this directory. - From a development dapp, request the local Snap:
await window.ethereum.request({
method: 'wallet_requestSnaps',
params: {
'local:http://localhost:8080': {},
},
});- Switch MetaMask to NetX Testnet (chain ID
587). - In Send, enter a registered name such as
netx.netx. MetaMask should offer the address returned by the NetX Name Service contract.
Public distribution
The public source repository is
https://github.com/VibeYolk/netx-name-resolver. Publish the package to npm,
then submit the Snap for MetaMask allowlisting. Stable MetaMask cannot install
this name-lookup Snap until that protected permission has been approved.
