MCPcopy Create free account
hub / github.com/block/buzz / query

Method query

crates/buzz-cli/src/client.rs:207–209  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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).

Callers 15

cmd_get_usersFunction · 0.45
search_by_nameFunction · 0.45
fetch_current_profileFunction · 0.45
cmd_get_presenceFunction · 0.45
cmd_list_workflowsFunction · 0.45
cmd_get_workflowFunction · 0.45
cmd_get_workflow_runsFunction · 0.45
cmd_get_feedFunction · 0.45
resolve_thread_refFunction · 0.45
resolve_channel_idFunction · 0.45
fetch_eventsFunction · 0.45
cmd_get_messagesFunction · 0.45

Calls 1

query_multiMethod · 0.80

Tested by

no test coverage detected