]> git.bitcoin.ninja Git - headersdns/commitdiff
Add rest html
authorMatt Corallo <git@bluematt.me>
Sat, 20 Feb 2021 23:32:07 +0000 (18:32 -0500)
committerMatt Corallo <git@bluematt.me>
Sat, 20 Feb 2021 23:41:17 +0000 (18:41 -0500)
index.html
rest.html [new file with mode: 0644]
testnet_rest.html [new file with mode: 0644]

index b12d13de444cfaf4396896e898af36d8a7b2b5a9..8c4143e0276667f81deabd5b75c261176eb69eef 100644 (file)
                        9f3c30f0c37fb977cf3e1a3173c631e8ff119ad3088b6f5b2bced0802139c202
                </p>
                <p>
-               You can find the <a href="https://git.bitcoin.ninja?p=headersdns">scripts used to generate the zones as well as this website via git.</a>
+                       You can find the <a href="https://git.bitcoin.ninja?p=headersdns">scripts used to generate the zones as well as this website via git.</a>
                </p>
                <p>
-               If you want a full block source over a protocol other than Bitcoin-P2P, a anycast-cached Bitcoin Core REST interface endpoint is available at <a href="https://bitcoin-rest.bitcoin.ninja/rest/">https://bitcoin-rest.bitcoin.ninja/rest/</a> for mainnet and <a href="https://testnet.bitcoin-rest.bitcoin.ninja/rest/">https://testnet.bitcoin-rest.bitcoin.ninja/rest/</a> for testnet3. It should go without saying that this should only be used as a backup chain source, never as the primary chain source.
+                       If you want a full block source over a protocol other than Bitcoin-P2P, a anycast-cached Bitcoin Core REST interface endpoint is available at <a href="https://bitcoin-rest.bitcoin.ninja/">https://bitcoin-rest.bitcoin.ninja/</a> for mainnet and <a href="https://testnet.bitcoin-rest.bitcoin.ninja/">https://testnet.bitcoin-rest.bitcoin.ninja/</a> for testnet3. It should go without saying that this should only be used as a backup chain source, never as the primary chain source.
                </p>
        </body>
 </html>
diff --git a/rest.html b/rest.html
new file mode 100644 (file)
index 0000000..96337cb
--- /dev/null
+++ b/rest.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html lang="en">
+       <head>
+               <meta charset="utf-8">
+               <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
+               <style type="text/css">
+                       body {
+                               margin:40px auto;
+                               max-width:660px;
+                               line-height:1.6;
+                               font-size:14pt;
+                               color:#444;
+                               padding:0 10px;
+                       }
+                       h1, h2, h3 {
+                               line-height: 1.2;
+                       }
+                       pre {
+                               overflow-x: scroll;
+                       }
+                       pre, .hex {
+                               font-size: 9pt;
+                       }
+                       .hex {
+                               font-family: monospace;
+                               word-break: break-all;
+                       }
+               </style>
+               <title>Anycast Bitcoin REST Endpoint</title>
+       </head>
+       <body>
+               <h2>
+                       This is an Anycast-Cached Bitcoin REST Endpoint
+               </h2>
+               <p>
+               This server provides standard access to a Bitcoin Core REST Endpoint at <a href="/rest/chaininfo.json">/rest/</a>. Note that it is cached, though responses should generally remain in sync with each other, after cache timeouts.
+               </p>
+       </body>
+</html>
diff --git a/testnet_rest.html b/testnet_rest.html
new file mode 100644 (file)
index 0000000..60591c9
--- /dev/null
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html lang="en">
+       <head>
+               <meta charset="utf-8">
+               <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
+               <style type="text/css">
+                       body {
+                               margin:40px auto;
+                               max-width:660px;
+                               line-height:1.6;
+                               font-size:14pt;
+                               color:#444;
+                               padding:0 10px;
+                       }
+                       h1, h2, h3 {
+                               line-height: 1.2;
+                       }
+                       pre {
+                               overflow-x: scroll;
+                       }
+                       pre, .hex {
+                               font-size: 9pt;
+                       }
+                       .hex {
+                               font-family: monospace;
+                               word-break: break-all;
+                       }
+               </style>
+               <title>Anycast Bitcoin Testnet3 REST Endpoint</title>
+       </head>
+       <body>
+               <h2>
+                       This is an Anycast-Cached Bitcoin Testnet3 REST Endpoint
+               </h2>
+               <p>
+               This server provides standard access to a Bitcoin Core REST Endpoint running on testnet3 at <a href="/rest/chaininfo.json">/rest/</a>. Note that it is cached, though responses should generally remain in sync with each other, after cache timeouts.
+               </p>
+       </body>
+</html>