Skip to content

Commit bead389

Browse files
committed
nwc: add NWC::uri method
Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent 04ca010 commit bead389

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

crates/nwc/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
### Added
2929

3030
- Add `NWC::reconnect_relay` (https://github.com/rust-nostr/nostr/pull/1020)
31+
- Add `NWC::uri`
3132

3233
## v0.43.0 - 2025/07/28
3334

crates/nwc/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ impl NWC {
6767
}
6868
}
6969

70+
/// Get URI
71+
#[inline]
72+
pub fn uri(&self) -> &NostrWalletConnectURI {
73+
&self.uri
74+
}
75+
7076
/// Get relays status
7177
pub async fn status(&self) -> HashMap<RelayUrl, RelayStatus> {
7278
let relays = self.pool.relays().await;

0 commit comments

Comments
 (0)