Skip to content

Commit

Permalink
Add inscriptions and runes details to address API endpoint (#3924)
Browse files Browse the repository at this point in the history
  • Loading branch information
twosatsmaxi authored Sep 3, 2024
1 parent e9353f3 commit 839322b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/subcommand/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ pub struct Server {
#[derive(Serialize)]
struct AddressResponse {
outputs: Vec<OutPoint>,
inscriptions: Vec<InscriptionId>,
sat_balance: u64,
runes_balances: Vec<(SpacedRune, Decimal, Option<char>)>,
}

impl Server {
Expand Down Expand Up @@ -843,6 +845,8 @@ impl Server {
Json(AddressResponse {
sat_balance,
outputs,
inscriptions,
runes_balances,
})
.into_response()
} else {
Expand Down

0 comments on commit 839322b

Please sign in to comment.