Documentation
¶
Index ¶
- func GetReserves(rpcClient *rpc.Client, poolCoinTokenAccount solana.PublicKey, ...) (reserveSol_ *type_.TokenAmountInfo, reserveToken_ *type_.TokenAmountInfo, ...)
- func GetSwapInstructions(network rpc.Cluster, userAddress solana.PublicKey, swapType type_.SwapType, ...) ([]solana.Instruction, error)
- func ParseSwapTx(network rpc.Cluster, meta *rpc.TransactionMeta, ...) (*raydium_type_.SwapTxDataType, error)
- func ParseSwapTxByParsedTx(network rpc.Cluster, meta *rpc.ParsedTransactionMeta, ...) (*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, coinIsSOL bool, ) ( reserveSol_ *type_.TokenAmountInfo, reserveToken_ *type_.TokenAmountInfo, err_ error, )
func GetSwapInstructions ¶
func GetSwapInstructions( network rpc.Cluster, userAddress solana.PublicKey, swapType type_.SwapType, tokenAddress solana.PublicKey, tokenAmountWithDecimals uint64, raydiumSwapKeys raydium_type_.RaydiumSwapKeys, isClose bool, solReserveWithDecimals uint64, tokenReserveWithDecimals uint64, slippage uint64, ) ([]solana.Instruction, error)
func ParseSwapTx ¶ added in v0.1.3
func ParseSwapTx( network rpc.Cluster, meta *rpc.TransactionMeta, transaction *solana.Transaction, ) (*raydium_type_.SwapTxDataType, error)
func ParseSwapTxByParsedTx ¶ added in v0.8.9
func ParseSwapTxByParsedTx( network rpc.Cluster, meta *rpc.ParsedTransactionMeta, transaction *rpc.ParsedTransaction, ) (*raydium_type_.SwapTxDataType, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.