From 839322b4d5acd464298494cbadb4d85c56d7defb Mon Sep 17 00:00:00 2001 From: twosatsmaxi Date: Tue, 3 Sep 2024 20:25:05 +0530 Subject: [PATCH] Add inscriptions and runes details to address API endpoint (#3924) --- src/subcommand/server.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/subcommand/server.rs b/src/subcommand/server.rs index 5a48afd79b..104c65717c 100644 --- a/src/subcommand/server.rs +++ b/src/subcommand/server.rs @@ -124,7 +124,9 @@ pub struct Server { #[derive(Serialize)] struct AddressResponse { outputs: Vec, + inscriptions: Vec, sat_balance: u64, + runes_balances: Vec<(SpacedRune, Decimal, Option)>, } impl Server { @@ -843,6 +845,8 @@ impl Server { Json(AddressResponse { sat_balance, outputs, + inscriptions, + runes_balances, }) .into_response() } else {