From ac1e3a5917573539799d50ad6ff1d63ea0b876f4 Mon Sep 17 00:00:00 2001 From: raphjaph Date: Thu, 23 Nov 2023 16:35:44 -0300 Subject: [PATCH 1/3] Add docs for metadata recursive endpoint --- docs/src/inscriptions/recursion.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/src/inscriptions/recursion.md b/docs/src/inscriptions/recursion.md index d11e1bef99..1bafb428a8 100644 --- a/docs/src/inscriptions/recursion.md +++ b/docs/src/inscriptions/recursion.md @@ -20,7 +20,15 @@ This has a number of interesting use-cases: inscribed as individual images, or in a shared texture atlas, and then combined, collage-style, in unique combinations in multiple inscriptions. -A few other endpoints that inscriptions may access are the following: +The following other recursive endpoints return JSON: + +- `/r/blockheight`: latest block height. +- `/r/blockhash`: latest block hash. +- `/r/blockhash/`: block hash at given block height. +- `/r/blocktime`: UNIX time stamp of latest block. +- `/r/metadata/`: returns a JSON string containing the hex-encoded CBOR metadata. + +For backwards compatibility these additional endpoints are supported. - `/blockheight`: latest block height. - `/blockhash`: latest block hash. From fa823bb37cb407359b88d3c1d55923561db857ad Mon Sep 17 00:00:00 2001 From: raph Date: Thu, 23 Nov 2023 20:38:21 +0100 Subject: [PATCH 2/3] Update docs/src/inscriptions/recursion.md Co-authored-by: Casey Rodarmor --- docs/src/inscriptions/recursion.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/inscriptions/recursion.md b/docs/src/inscriptions/recursion.md index 1bafb428a8..429944b392 100644 --- a/docs/src/inscriptions/recursion.md +++ b/docs/src/inscriptions/recursion.md @@ -20,7 +20,7 @@ This has a number of interesting use-cases: inscribed as individual images, or in a shared texture atlas, and then combined, collage-style, in unique combinations in multiple inscriptions. -The following other recursive endpoints return JSON: +The recursive endpoints are: - `/r/blockheight`: latest block height. - `/r/blockhash`: latest block hash. From 6a3206a57f1dae8c63306eb071c2b75f40117698 Mon Sep 17 00:00:00 2001 From: raph Date: Thu, 23 Nov 2023 20:38:49 +0100 Subject: [PATCH 3/3] Update docs/src/inscriptions/recursion.md Co-authored-by: Casey Rodarmor --- docs/src/inscriptions/recursion.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/inscriptions/recursion.md b/docs/src/inscriptions/recursion.md index 429944b392..ce8ddbd09c 100644 --- a/docs/src/inscriptions/recursion.md +++ b/docs/src/inscriptions/recursion.md @@ -28,7 +28,7 @@ The recursive endpoints are: - `/r/blocktime`: UNIX time stamp of latest block. - `/r/metadata/`: returns a JSON string containing the hex-encoded CBOR metadata. -For backwards compatibility these additional endpoints are supported. +Responses from the above recursive endpoints are JSON. For backwards compatibility additional endpoints are supported, some of which return plain-text responses. - `/blockheight`: latest block height. - `/blockhash`: latest block hash.