From cc2159a30878eb5004facda9f073d573631728f6 Mon Sep 17 00:00:00 2001 From: William Date: Fri, 3 Jan 2025 11:27:51 +0800 Subject: [PATCH] update readme --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b953d81..84d2e20 100644 --- a/README.md +++ b/README.md @@ -32,11 +32,11 @@ use mai3_pumpfun_sdk::instruction::{ }; use anchor_client::solana_sdk::commitment_config::CommitmentConfig; -use std::str::FromStr; -use tokio::signal; +println!("Starting token subscription..."); +// wss let ws_url = "wss://api.mainnet-beta.solana.com"; - + // Set commitment let commitment = CommitmentConfig::confirmed(); @@ -62,11 +62,12 @@ let subscription = tokens_subscription( callback ).await.unwrap(); -// Wait for a while to receive events tokio::time::sleep(tokio::time::Duration::from_secs(60)).await; // Stop subscription stop_subscription(subscription).await; + +println!("Ended token subscription."); ``` ### pumpfun Create, Buy, Sell