Documentation ¶
Index ¶
- func GetReserves(rpcClient *rpc.Client, poolCoinTokenAccount solana.PublicKey, ...) (reserveSol_ *type_.TokenAmountInfo, reserveToken_ *type_.TokenAmountInfo, ...)
- 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 GetReserves( rpcClient *rpc.Client, poolCoinTokenAccount solana.PublicKey, poolPcTokenAccount solana.PublicKey, ) ( reserveSol_ *type_.TokenAmountInfo, reserveToken_ *type_.TokenAmountInfo, err_ error, )
func GetSwapInstructions ¶
func GetSwapInstructions( userAddress solana.PublicKey, swapType type_.SwapType, tokenAddress solana.PublicKey, tokenAmountWithDecimals uint64, raydiumSwapKeys raydium_type_.RaydiumSwapKeys, isClose bool, solReserveWithDecimals uint64, tokenReserveWithDecimals uint64, 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.