From 7454269418c561ca765215127491234ebef8391d Mon Sep 17 00:00:00 2001 From: raphjaph Date: Mon, 23 Dec 2024 14:55:19 +0100 Subject: [PATCH] Amend --- docs/src/inscriptions/recursion.md | 42 ++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 11 deletions(-) diff --git a/docs/src/inscriptions/recursion.md b/docs/src/inscriptions/recursion.md index e64ed64493..99f0586b4d 100644 --- a/docs/src/inscriptions/recursion.md +++ b/docs/src/inscriptions/recursion.md @@ -3210,25 +3210,45 @@ curl -s -H "Accept: application/json" \ ### Description -Information about an output. -### Example +Information about an output. Depending on which index the server is running the +returned types might be null. + +### Examples + +Inscriptions only index: + ```bash curl -s -H "Accept: application/json" \ http://0.0.0.0:80/r/output/4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b:0 ``` + ```json { - "address": "04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f", - "indexed": true, - "value": 5000000000, + "address": "", // TODO "inscriptions": [], - "runes": {}, - "sat_ranges": [ - [0, 5000000000] - ], - "spent": false, - "transaction": "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b" + "runes": null, + "sat_ranges": null, + "script_pubkey": "", // TODO + "value": 5000000000 +} +``` + +Multiple assets in output: + +```bash +curl -s -H "Accept: application/json" \ + http://0.0.0.0:80/r/output/4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b:0 +``` + +```json +{ + "address": "", // TODO + "inscriptions": [], // TODO + "runes": {}, // TODO + "sat_ranges": [], // TODO + "script_pubkey": "", // TODO + "value": 5000000000 } ```