feat: wire bitcoin.getinfo and lnd.getinfo RPC routes + AIUI bitcoin context (Task 3)

Register bitcoin.rs and lnd.rs modules in mod.rs and add route entries
for bitcoin.getinfo and lnd.getinfo. Add bitcoinInfo ref and context
display to AIUI useArchy.ts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-05 13:56:29 +00:00
co-authored by Claude Opus 4.6
parent 75c424874e
commit ddf3f73df5
4 changed files with 239 additions and 1 deletions
+6
View File
@@ -1,5 +1,7 @@
mod auth;
mod bitcoin;
mod container;
mod lnd;
mod node;
mod package;
mod peers;
@@ -128,6 +130,10 @@ impl RpcHandler {
"node.nostr-pubkey" => self.handle_node_nostr_pubkey().await,
"node-nostr-verify-revoked" => self.handle_node_nostr_verify_revoked().await,
// Bitcoin & Lightning deep data
"bitcoin.getinfo" => self.handle_bitcoin_getinfo().await,
"lnd.getinfo" => self.handle_lnd_getinfo().await,
_ => {
Err(anyhow::anyhow!("Unknown method: {}", rpc_req.method))
}