Configuration object
Solana RPC connection
Wallet keypair for signing transactions
Public key of the wallet
Optional
priorityFeeParam: numberOptional
payer: stringOptional
initialSupply: numberExecute token swap on OKX DEX
Source token address
Target token address
Amount to swap in base units
Slippage tolerance as a decimal (default: 0.5%)
Use auto slippage (default: false)
Maximum auto slippage in basis points (default: 100 = 1%)
Optional
userWalletAddress: stringOptional wallet address to use (defaults to agent's wallet)
Swap result with transaction ID
Closes an existing trading position on Flash.Trade
Flash trade close parameters
Transaction signature
Opens a new trading position on Flash.Trade
Flash trade parameters including market, side, collateral, leverage, and pool name
Transaction signature
Optional
search: stringGet quote for token swap on OKX DEX
Source token address
Target token address
Amount to swap in base units
Slippage tolerance as a decimal (default: 0.5%)
Quote information
Optional
wallet_address: PublicKeyOptional
options: PumpFunTokenOptionsOptional
recipient: PublicKeyOptional
splmintAddress: PublicKeyOptional
slippageBps: numberOptional
price: number
Main class for interacting with Solana blockchain Provides a unified interface for token operations, NFT management, trading and more
SolanaAgentKit