amount | string | Amount to sell |
currentSupply? | string | Current token supply (optional - only used for local mode, auto-fetched if missing) |
maxSupply? | string | Maximum token supply (optional - only used for local sell mode, auto-fetched if missing) |
mode? | "local" | "external" | Calculation mode override (optional - defaults to SDK's calculateAmountMode). 'local' = Client-side bonding curve (instant, no network calls) 'external' = Network calls to GalaChain (slower, always fresh) |
reverseBondingCurveMaxFeeFactor? | number | Max reverse bonding curve fee factor (optional - only used for local sell mode, auto-fetched if missing) |
reverseBondingCurveMinFeeFactor? | number | Min reverse bonding curve fee factor (optional - only used for local sell mode, auto-fetched if missing) |
tokenName | string | Token name |
type | "native" | "exact" | Calculation type |