-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.html
More file actions
158 lines (149 loc) · 8.08 KB
/
Copy pathbuild.html
File metadata and controls
158 lines (149 loc) · 8.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Build & Mine on LXS — developers, node operators, miners</title>
<meta name="description" content="Developer & miner hub for the LXS chain (22540): one-click Add to MetaMask, chain config, RPC + REST endpoints, canonical contract addresses, run-a-node and mining guides.">
<link rel="icon" type="image/svg+xml" href="lxs-logo.svg">
<link rel="stylesheet" href="style.css">
<style>
.cfg{width:100%;border-collapse:collapse;margin:6px 0;font-size:14px}
.cfg th,.cfg td{text-align:left;padding:9px 12px;border-bottom:1px solid var(--line,#262c3a);vertical-align:top}
.cfg th{color:var(--dim,#8b93a7);font-weight:600;white-space:nowrap;width:190px}
.cfg td code{font:12.5px ui-monospace,Menlo,monospace;background:#0d1016;border:1px solid var(--line,#262c3a);border-radius:6px;padding:3px 7px;color:var(--text,#e9edf5);word-break:break-all}
.btnrow{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}
#mmstatus{font-size:13px;color:var(--dim,#8b93a7);margin-top:8px;min-height:18px}
pre.sh{background:#0b0d12;border:1px solid var(--line,#262c3a);border-radius:12px;padding:14px 16px;overflow-x:auto;font:12.5px ui-monospace,Menlo,monospace;color:#cfe3ff}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:720px){.grid2{grid-template-columns:1fr}}
</style>
</head>
<body>
<header>
<a class="brand" href="index.html"><img src="lxs-logo.svg" alt="LXS logo">LXS</a>
<nav class="nav">
<a href="index.html">Home</a>
<a href="mine.html">Mine</a>
<a href="buy.html">Buy</a>
<a href="tokens.html">Tokens</a>
<a href="wallet.html">Wallet</a>
<a href="docs.html">Docs</a>
<a href="build.html" class="active">Build</a>
<a href="explorer.html">Explorer</a>
</nav>
</header>
<main>
<section class="hero">
<h1>Build & Mine on LXS</h1>
<p>Everything a developer, node operator, or miner needs to connect to the LXS chain (chain ID <strong>22540</strong>) — a proof-of-work, EVM-compatible Layer-1. One click to add the network, full config, endpoints, and the canonical contract addresses.</p>
<div class="btnrow">
<button id="addmm">🦊 Add LXS to MetaMask</button>
<a href="explorer.html"><button class="ghost">🔎 Open Explorer</button></a>
<a href="https://github.com/LXS-NETWORK/LXS" target="_blank" rel="noopener"><button class="ghost">💻 GitHub</button></a>
</div>
<div id="mmstatus"></div>
</section>
<section class="section card">
<h2>Network configuration</h2>
<table class="cfg">
<tr><th>Network name</th><td>LXS</td></tr>
<tr><th>Chain ID</th><td><code>22540</code> (hex <code>0x580c</code>)</td></tr>
<tr><th>Currency symbol</th><td><code>LXS</code> · 18 decimals</td></tr>
<tr><th>RPC URL</th><td><code>https://lxsnetwork.duckdns.org</code></td></tr>
<tr><th>Block explorer</th><td><code>https://lxs-network.github.io/explorer.html</code></td></tr>
<tr><th>Consensus</th><td>Proof-of-Work (mined, ~4 min blocks, halving)</td></tr>
</table>
</section>
<section class="section card">
<h2>Endpoints for tools & aggregators</h2>
<table class="cfg">
<tr><th>JSON-RPC</th><td><code>POST https://lxsnetwork.duckdns.org</code> — eth_* facade (getLogs, call, estimateGas, getBlockReceipts, feeHistory, syncing, …)</td></tr>
<tr><th>Total supply (number)</th><td><code>GET https://lxsnetwork.duckdns.org/supply</code></td></tr>
<tr><th>Supply (Etherscan-style)</th><td><code>GET /api?module=stats&action=coinsupply</code></td></tr>
<tr><th>Balance (Etherscan-style)</th><td><code>GET /api?module=account&action=balance&address=0x…</code></td></tr>
<tr><th>Token list</th><td><code>https://lxs-network.github.io/tokens.json</code></td></tr>
</table>
</section>
<section class="section card">
<h2>Canonical contracts</h2>
<table class="cfg">
<tr><th>Multicall3</th><td><code>0x6d0a6b47b082db9d2e7ea366b309f1bf58286457</code></td></tr>
<tr><th>Wrapped LXS (WLXS)</th><td><code>0x35dc0B4B19D9531Bb8432bC31D5deE3c1BDE87be</code></td></tr>
<tr><th>LxsSwap Factory</th><td><code>0x2A04964fffdE2Ed4C4656e0751DC25f13fdB9927</code></td></tr>
<tr><th>LxsSwap Router</th><td><code>0x4f831b258fe42082664767df6dd19884bC230488</code></td></tr>
<tr><th>CREATE2 factory</th><td><code>0x0c49e9d2e9c1045a10e76cc4ed90b434e650c129</code> — deterministic-deployment proxy (Arachnid bytecode). Chain-local address; configure it as your deployer (e.g. <code>forge --deployer</code>).</td></tr>
</table>
</section>
<div class="grid2">
<section class="section card prose">
<h2>⛏️ Mine LXS</h2>
<p>LXS is mined with proof-of-work — anyone can point a machine at the chain and earn the block reward. More independent miners means a stronger, more decentralized network.</p>
<ol>
<li>Grab a wallet address (any LXS/EVM address).</li>
<li>Download the <code>lxs</code> binary (see <a href="mine.html">Mine</a> / GitHub releases).</li>
<li>Run the miner, pointing at the seed node:</li>
</ol>
<pre class="sh">lxs mine \
-coinbase <YOUR_ADDRESS> \
-bootstrap <SEED_MULTIADDR> \
-datadir ./lxs-data</pre>
<p>Your balance climbs with every block you win. Reward halves on schedule (Bitcoin-style).</p>
</section>
<section class="section card prose">
<h2>🖧 Run a node</h2>
<p>Running your own node adds an independent RPC + validation endpoint and helps decentralize the network (a real credibility metric for listings).</p>
<pre class="sh">lxs node \
-datadir ./lxs-data \
-p2p-seed <SEED_MULTIADDR> \
-rpc 127.0.0.1:8545</pre>
<p>The node resumes from its on-disk head after any restart. See <a href="https://github.com/LXS-NETWORK/LXS">GitHub</a>
<a href="https://t.me/lxsnetwork" target="_blank" rel="noopener">Telegram</a>
<a href="https://x.com/LXScoin" target="_blank" rel="noopener">X</a> for the systemd unit, build script, and full deployment docs.</p>
</section>
</div>
<section class="section card prose">
<h2>Contract verification</h2>
<p>Contracts deployed on LXS are standard EVM (solc / Istanbul). Source can be verified against the deployed bytecode; the wLXS bridge token is verified on Basescan. A native-chain verification service is on the roadmap.</p>
</section>
</main>
<footer>
<div class="foot-inner">
<nav class="foot-nav">
<a href="index.html">Home</a>
<a href="mine.html">Mine</a>
<a href="buy.html">Buy</a>
<a href="tokens.html">Tokens</a>
<a href="wallet.html">Wallet</a>
<a href="docs.html">Docs</a>
<a href="build.html">Build</a>
<a href="explorer.html">Explorer</a>
<a href="faq.html">FAQ</a>
<a href="https://github.com/LXS-NETWORK/LXS">GitHub</a>
</nav>
<p>An open, mined, community-run blockchain. Your keys never leave your device. Not financial advice.</p>
</div>
</footer>
<script>
document.getElementById("addmm").addEventListener("click", async function () {
var s = document.getElementById("mmstatus");
if (!window.ethereum) { s.textContent = "No EVM wallet detected — install MetaMask, then click again."; return; }
try {
await window.ethereum.request({
method: "wallet_addEthereumChain",
params: [{
chainId: "0x580c",
chainName: "LXS",
nativeCurrency: { name: "LXS", symbol: "LXS", decimals: 18 },
rpcUrls: ["https://lxsnetwork.duckdns.org"],
blockExplorerUrls: ["https://lxs-network.github.io/explorer.html"]
}]
});
s.textContent = "✅ LXS added — check your wallet's network list.";
} catch (e) {
s.textContent = "Not added: " + (e && e.message ? e.message : "request rejected");
}
});
</script>
</body>
</html>