# Gochu.fun SDK

## Gochu.fun SDK Access

### Overview

The Gochu.fun SDK allows third-party developers, trading bots, buy bots, and other tools to integrate directly with the Gochu ecosystem. By leveraging our SDK, users can seamlessly interact with the platform’s bonding curve, retrieve token data, and execute swaps programmatically.

### Features

* **Swap Functionality** – Enable automated token trading through Gochu.fun.
* **Token Data Retrieval** – Access real-time bonding curve data for Gochu-launched tokens.
* **Enhanced Trading Experience** – Improve user experience for trading bots, buy bots, and analytics tools.

### Getting Access

To maintain security and prevent abuse, SDK access requires an API key. Follow these steps to obtain one:

1. **Fill out the Access Request Form** – Provide details about your project and intended use case.
2. **Review Process** – Our team will assess your request and approve legitimate integrations.
3. **Receive Your API Key** – Upon approval, you will receive an API key to access the SDK.

[Request SDK Access](https://forms.gle/qBHsK9DenCRtYZFB9)

[Gochu.fun SDK npmjs link](https://www.npmjs.com/package/gochufun-sdk)

### Integration

Once you receive your API key, install the SDK via npm:

```
npm install gochufun-sdk
```

Then, initialize the SDK in your project:

```
import { GochuFun } from 'gochufun-sdk';

const gochu = new GochuFun({ apiKey: 'YOUR_API_KEY' });
```

### Example Usage

#### Fetching Token Data

```
const tokenData = await gochu.getTokenInfo('TOKEN_ADDRESS');
console.log(tokenData);
```

#### Swapping Tokens

```
await gochu.swap({
  from: 'SOL',
  to: 'TOKEN_ADDRESS',
  amount: 1,
});
```

### Support

For questions or issues, reach out to us on Telegram or Discord.

Gochu.fun provides custom APIs for integration with third-party platforms such as swap platforms and data aggregators. These APIs will allow external platforms to:

* **Retrieve Gochu token data** from the bonding curve
* **Access market data** for Gochu-based tokens
* **Integrate Gochu tokens** into their platforms for enhanced functionality

#### API Availability

APIs will not be available immediately at launch. Access will require direct approval, and interested platforms will need to **contact us** at **<support@gochu.fun>** to request access. More details, including documentation and usage guidelines, will be provided after our initial release.


---

# 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://gochu-fun.gitbook.io/gochufun/additional/gochu.fun-sdk.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.
