# Functions

This section provides detailed documentation for all functions available in the SC Bonding Curve contract.

## Available Functions

1. [Create Token](/sc-bonding-curve/functions/create-token.md) - Creates a new token with a bonding curve
2. [Buy Token](/sc-bonding-curve/functions/buy-token.md) - Purchases tokens from the bonding curve using SOL
3. [Sell Token](/sc-bonding-curve/functions/sell-token.md) - Sells tokens back to the bonding curve for SOL
4. [Admin Migrate](/sc-bonding-curve/functions/migrate.md) - Migrates token from bonding curve to DEX after finalization (admin only)
5. [Admin Set Properties](https://github.com/fablee1/sc-gitbook/blob/main/coolpad/functions/admin-set-properties.md) - Sets platform-wide properties (admin only)

Each function documentation includes:

* Parameter descriptions
* Required accounts
* Function logic
* Example usage


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.something.cool/sc-bonding-curve/functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
