From: Ardis Lu Date: Wed, 5 Oct 2022 03:27:59 +0000 (-0700) Subject: Add JSON-RPC input instead of hardcoding a node X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=b883bb7c59dd7beb46b4aa03e00114b0987bbe85;p=ens2hex Add JSON-RPC input instead of hardcoding a node --- 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),