Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add id inscription recursive JSON #3258

Merged
merged 12 commits into from
Mar 11, 2024
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
Loading