raydium

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

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,
) (
	reserveSolAmount_ string,
	reserveTokenAmount_ string,
	err_ error,
)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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