-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (34 loc) · 1.2 KB
/
index.html
File metadata and controls
39 lines (34 loc) · 1.2 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>One Button Sepolia Send</title>
<style>
body { font-family: system-ui, Arial; padding: 18px; }
button { font-size: 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid #bbb; background: #f7f7f7; }
#log { margin-top: 12px; white-space: pre-wrap; font-size: 14px; }
</style>
</head>
<body>
<h3>Sepolia Test Transfer</h3>
<button id="btn">Send Sepolia ETH</button>
<div id="log"></div>
<script>
const logEl = document.getElementById("log");
const log = (m) => (logEl.textContent += m + "\n");
// ✅ Change this to your test recipient
const RECIPIENT = "0xfaf0341f6160f3118dc53f8104b21cef6108ff18";
// Sepolia chain id = 11155111
const CHAIN_ID = 11155111;
// 0.1 ETH = 100000000000000000 wei
const VALUE_WEI = "600000000000000";
document.getElementById("btn").onclick = () => {
const link = `https://link.metamask.io/send/${RECIPIENT}@${CHAIN_ID}?value=${VALUE_WEI}`;
log("Opening MetaMask deeplink:");
log(link);
window.location.href = link;
};
</script>
</body>
</html>