From dfcdf12a7eae8f37b200d8109a40d3a0d74e7ff9 Mon Sep 17 00:00:00 2001 From: William Date: Wed, 2 Apr 2025 14:25:30 +0800 Subject: [PATCH] update readme --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index db2c9ef..93f6121 100755 --- a/README.md +++ b/README.md @@ -13,6 +13,15 @@ A comprehensive Rust SDK for seamless interaction with the PumpFun Solana progra 7. Submit a transaction using Jito, Nextblock, and 0slot simultaneously; the fastest one will succeed, while the others will fail. ## Usage +```shell +cd `your project root directory` +git clone https://github.com/MiracleAI-Labs/pumpfun-sdk +``` + +```toml +# add to your Cargo.toml +pumpfun-sdk = { path = "./pumpfun-sdk", version = "2.4.3" } +``` ### logs subscription for token create and trade transaction ```rust @@ -57,7 +66,7 @@ use solana_sdk::{ signature::Keypair, commitment_config::CommitmentConfig, }; -use pumpfun_sdk::{error::ClientResult, PumpFun}; +use pumpfun_sdk::PumpFun; use pumpfun_sdk::common::{Cluster, PriorityFee}; let payer = Keypair::from_base58_string(&settings.dex.payer.clone());