MCPcopy Create free account

hub / github.com/cutupdev/Solana-Copytrading-bot / functions

Functions32 in github.com/cutupdev/Solana-Copytrading-bot

↓ 5 callersFunctionget_associated_token_address
( client: Arc<solana_client::nonblocking::rpc_client::RpcClient>, keypair: Arc<Keypair>, address:
src/core/token.rs:12
↓ 5 callersMethodlog
Method to log a message with a prefix
src/common/logger.rs:20
↓ 4 callersFunctionimport_env_var
(key: &str)
src/common/utils.rs:12
↓ 2 callersFunctionget_bonding_curve_account
( rpc_client: Arc<solana_client::rpc_client::RpcClient>, mint: &Pubkey, program_id: &Pubkey, )
src/dex/pump_fun.rs:146
↓ 2 callersFunctionnew_signed_and_send
( client: &RpcClient, keypair: &Keypair, mut instructions: Vec<Instruction>, use_jito: bool, )
src/core/tx.rs:100
↓ 1 callersFunctionget_pda
(mint: &Pubkey, program_id: &Pubkey)
src/dex/pump_fun.rs:177
↓ 1 callersMethodget_pool
(&self)
src/dex/raydium.rs:43
↓ 1 callersFunctionget_pool_info
get pool info https://api-v3.raydium.io/pools/info/mint?mint1=So11111111111111111111111111111111111111112&mint2=EzM2d8JVpzfhV7km3tUsR1U1S4xwkrPnWkM4QF
src/dex/raydium.rs:312
↓ 1 callersFunctionget_pool_state_by_mint
( rpc_client: Arc<solana_client::rpc_client::RpcClient>, mint: &str, logger: &Logger, )
src/dex/raydium.rs:247
↓ 1 callersFunctionget_unit_limit
()
src/core/tx.rs:34
↓ 1 callersFunctionget_unit_price
prioritization fee = UNIT_PRICE * UNIT_LIMIT
src/core/tx.rs:27
↓ 1 callersMethodis_debug
(&self)
src/common/logger.rs:58
Functionamm_swap
( amm_program: &Pubkey, result: AmmSwapInfoResult, user_owner: &Pubkey, user_source: &Pubkey,
src/dex/raydium.rs:148
Functioncreate_nonblocking_rpc_client
( )
src/common/utils.rs:25
Functioncreate_rpc_client
()
src/common/utils.rs:16
Methoddebug
(&self, message: String)
src/common/logger.rs:26
Methoderror
(&self, message: String)
src/common/logger.rs:33
Functionget_account_info
( client: Arc<solana_client::nonblocking::rpc_client::RpcClient>, address: &Pubkey, account: &Pubk
src/core/token.rs:31
Functionget_mint_info
( client: Arc<solana_client::nonblocking::rpc_client::RpcClient>, _keypair: Arc<Keypair>, address:
src/core/token.rs:58
Functionget_pool_state
( rpc_client: Arc<solana_client::rpc_client::RpcClient>, pool_id: Option<&str>, mint: Option<&str>
src/dex/raydium.rs:207
Functionget_pump_info
https://frontend-api.pump.fun/coins/8zSLdDzM1XsqnfrHmHvA9ir6pvYDjs8UXz6B2Tydd6b2
src/dex/pump_fun.rs:184
Functionimport_wallet
()
src/common/utils.rs:35
Functionjito_confirm
( keypair: &Keypair, version_tx: VersionedTransaction, recent_block_hash: &Hash, )
src/core/tx.rs:40
Functionmain
()
src/main.rs:7
Functionmax_amount_with_slippage
(input_amount: u64, slippage_bps: u64)
src/dex/pump_fun.rs:109
Functionmin_amount_with_slippage
(input_amount: u64, slippage_bps: u64)
src/dex/pump_fun.rs:102
Methodnew
( rpc_nonblocking_client: Arc<solana_client::nonblocking::rpc_client::RpcClient>, rpc_client:
src/dex/raydium.rs:77
Methodnew
( rpc_nonblocking_client: Arc<solana_client::nonblocking::rpc_client::RpcClient>, rpc_client:
src/dex/pump_fun.rs:45
Methodnew
Constructor function to create a new Logger instance
src/common/logger.rs:12
Methodprefix_with_date
(&self)
src/common/logger.rs:40
Methodswap
( &self, swap_config: SwapConfig, amm_pool_id: Pubkey, pool_state: AmmInfo,
src/dex/raydium.rs:90
Methodswap
(&self, mint: &str, swap_config: SwapConfig)
src/dex/pump_fun.rs:57