raydium_amm

package
v1.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2025 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSwapInstructions

func GetSwapInstructions(
	network rpc.Cluster,
	userAddress solana.PublicKey,
	swapType type_.SwapType,
	tokenAddress solana.PublicKey,
	tokenAmountWithDecimals uint64,
	raydiumSwapKeys raydium_amm_type.SwapKeys,
	isClose bool,
	solReserveWithDecimals uint64,
	tokenReserveWithDecimals uint64,
	slippage uint64,
) ([]solana.Instruction, error)

func ParseAddLiqTxByParsedTx added in v0.9.9

func ParseAddLiqTxByParsedTx(
	network rpc.Cluster,
	meta *rpc.ParsedTransactionMeta,
	parsedTransaction *rpc.ParsedTransaction,
) (*raydium_amm_type.AddLiqTxDataType, error)

func ParseSwapTxByParsedTx

func ParseSwapTxByParsedTx(
	network rpc.Cluster,
	meta *rpc.ParsedTransactionMeta,
	transaction *rpc.ParsedTransaction,
) (*type_.SwapTxDataType, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL