Skip to content

Commit

Permalink
Add id inscription recursive JSON (ordinals#3258)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph committed Mar 11, 2024
1 parent 35e6944 commit dcd5688
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/inscriptions/recursion.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Examples
"content_length": 144037,
"fee": 36352,
"height": 209,
"id": "3bd72a7ef68776c9429961e43043ff65efa7fb2d8bb407386a9e3b19f149bc36i0",
"number": 2,
"output": "3bd72a7ef68776c9429961e43043ff65efa7fb2d8bb407386a9e3b19f149bc36:0",
"sat": null,
Expand Down
1 change: 1 addition & 0 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ pub struct InscriptionRecursive {
pub content_length: Option<usize>,
pub fee: u64,
pub height: u32,
pub id: InscriptionId,
pub number: i32,
pub output: OutPoint,
pub sat: Option<ordinals::Sat>,
Expand Down
1 change: 1 addition & 0 deletions src/subcommand/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ impl Server {
content_length: inscription.content_length(),
fee: entry.fee,
height: entry.height,
id: inscription_id,
number: entry.inscription_number,
output: satpoint.outpoint,
value: output.as_ref().map(|o| o.value),
Expand Down
1 change: 1 addition & 0 deletions tests/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ fn recursive_inscription_endpoint() {
content_length: Some(3),
fee: 138,
height: 2,
id: inscription.id,
number: 0,
output: inscription.location.outpoint,
sat: Some(Sat(50 * COIN_VALUE)),
Expand Down

0 comments on commit dcd5688

Please sign in to comment.