helius 1.1.0

An asynchronous Helius Rust SDK for building the future of Solana
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use helius::error::Result;
use helius::types::Cluster;
use helius::Helius;

#[tokio::main]
async fn main() -> Result<()> {
    let api_key: &str = "your_api_key";
    let cluster: Cluster = Cluster::MainnetBeta;

    let helius: Helius = Helius::new(api_key, cluster).unwrap();

    let webhook_id = "your_webhook_id";

    let response: Result<()> = helius.delete_webhook(webhook_id).await;
    println!("Webhook deleted  {:?}", response);
    Ok(())
}