Documentation
¶
Index ¶
- func GetPoolInfo(rpcClient *rpc.Client, poolIdAddress solana.PublicKey) (*raydium_clmm_type.PoolInfo, error)
- func GetSwapInstructions(network rpc.Cluster, userAddress solana.PublicKey, swapType type_.SwapType, ...) ([]solana.Instruction, error)
- func ParseSwapTxByParsedTx(network rpc.Cluster, meta *rpc.ParsedTransactionMeta, ...) (*type_.SwapTxDataType, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPoolInfo ¶
func GetPoolInfo( rpcClient *rpc.Client, poolIdAddress solana.PublicKey, ) (*raydium_clmm_type.PoolInfo, error)
func GetSwapInstructions ¶
func GetSwapInstructions( network rpc.Cluster, userAddress solana.PublicKey, swapType type_.SwapType, tokenAddress solana.PublicKey, tokenAmountWithDecimals uint64, swapKeys raydium_clmm_type.SwapV2Keys, isClose bool, solReserveWithDecimals uint64, tokenReserveWithDecimals uint64, slippage uint64, ) ([]solana.Instruction, error)
func ParseSwapTxByParsedTx ¶ added in v0.9.9
func ParseSwapTxByParsedTx( network rpc.Cluster, meta *rpc.ParsedTransactionMeta, transaction *rpc.ParsedTransaction, ) (*type_.SwapTxDataType, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.