Skip to main content

index/interfaces/BuyTokenOptions.md

Options for buying tokens

Properties​

PropertyTypeDescription
amountstringAmount to spend or buy
expectedAmountstringExpected amount (required for trading operations)
maxAcceptableReverseBondingCurveFee?stringOptional base reverse bonding curve fee from calculateBuyAmount (GALA) - use result.reverseBondingCurveFee
maxAcceptableReverseBondingCurveFeeSlippageFactor?numberOptional slippage tolerance factor for reverse bonding curve fee (decimal, e.g., 0.01 for 1%) - applied to maxAcceptableReverseBondingCurveFee
privateKey?stringOptional private key override for this operation (format: '0x' + 64 hex characters)
slippageToleranceFactor?numberOptional slippage tolerance factor for expected amount (decimal, e.g., 0.05 for 5%)
tokenNamestringToken name
type"native" | "exact"Buy type