index/interfaces/CalculateBuyAmountOptions.md
Options for calculating buy amount
Properties
| Property | Type | Description |
|---|
amount | string | Amount to spend or buy |
currentSupply? | string | Current token supply (optional - only used for local 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) |
tokenName | string | Token name |
type | "native" | "exact" | Calculation type |
current supply token name