Function get_webhook

Source
pub async fn get_webhook(
    agent: &SolanaAgentKit,
    webhook_id: &str,
) -> Result<HeliusWebhookIdResponse, Box<dyn Error>>
Expand description

Retrieves a Helius Webhook by ID, returning only the specified fields.

§Arguments

  • agent - An instance of SolanaAgentKit (with .config.HELIUS_API_KEY)
  • webhook_id - The unique ID of the webhook to delete

§Returns

A HeliusWebhook object containing { wallet, webhookURL, transactionTypes, accountAddresses, webhookType }