Documentation ¶
Index ¶
- func GetReserves(rpcClient *rpc.Client, poolCoinTokenAccount solana.PublicKey, ...) (reserveSolAmount_ string, reserveTokenAmount_ string, err_ error)
- func GetSwapInstructions(userAddress solana.PublicKey, swapType type_.SwapType, ...) ([]solana.Instruction, error)
- func ParseSwapTx(meta *rpc.TransactionMeta, transaction *solana.Transaction) (*raydium_type_.SwapTxDataType, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetReserves ¶ added in v0.1.2
func GetSwapInstructions ¶
func GetSwapInstructions( userAddress solana.PublicKey, swapType type_.SwapType, tokenAddress solana.PublicKey, tokenAmount type_.TokenAmountInfo, raydiumSwapKeys raydium_type_.RaydiumSwapKeys, isClose bool, solReserve string, tokenReserve string, slippage int64, ) ([]solana.Instruction, error)
func ParseSwapTx ¶ added in v0.1.3
func ParseSwapTx(meta *rpc.TransactionMeta, transaction *solana.Transaction) (*raydium_type_.SwapTxDataType, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.