Execute a one-shot query via the HTTP bridge. `filter` is a Nostr filter object (will be wrapped in an array). Returns the raw JSON response (array of events).
(&self, filter: &serde_json::Value)
| 205 | /// `filter` is a Nostr filter object (will be wrapped in an array). |
| 206 | /// Returns the raw JSON response (array of events). |
| 207 | pub async fn query(&self, filter: &serde_json::Value) -> Result<String, CliError> { |
| 208 | self.query_multi(std::slice::from_ref(filter)).await |
| 209 | } |
| 210 | |
| 211 | /// Execute a one-shot query with multiple filters via the HTTP bridge. |
| 212 | /// Each filter is ORed by the relay (standard Nostr REQ behavior). |
no test coverage detected