From b883bb7c59dd7beb46b4aa03e00114b0987bbe85 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Tue, 4 Oct 2022 20:27:59 -0700 Subject: [PATCH] Add JSON-RPC input instead of hardcoding a node --- index.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 89ae359..9f4ce0b 100644 --- a/index.html +++ b/index.html @@ -224,6 +224,14 @@

+
+ Advanced options +
+ + +
+
+ @@ -297,7 +305,7 @@ const cleaned = [...parsed].filter(name => name.slice(-4) === '.eth'); // Remove anything that does not end in '.eth' if (cleaned.length === 0) { - status.textContent = 'No valid ENS names found.' + status.textContent = 'No valid ENS names found.'; return; } @@ -314,7 +322,7 @@ id: index })); - const batchResponse = await fetch('https://cloudflare-eth.com/', { + const batchResponse = await fetch(formData.get('rpc'), { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(batchPayload), -- 2.47.3