> For the complete documentation index, see [llms.txt](https://docs.surged.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.surged.fun/integration/contracts.md).

# Contracts

The package ships these, so you rarely need to copy one:

```ts
import { deployments } from '@surged/sdk'

deployments[5042].launchFactory
```

`GET /config` returns the ones a client needs, read from the chain rather than from a file.

## Arc mainnet, chain id 5042

The full list, with what each contract does, is on [Official addresses](/launchpad/addresses.md). That page is the one to link to when you tell your own users which contracts are Surged's.

A token's own curve is not on that list: there is one per launch, and `GET /launches/{token}` returns it as `curve`.

## Which one you send to

| You want to              | Send to              |
| ------------------------ | -------------------- |
| Buy or sell on the curve | the launch's `curve` |
| Launch a token           | `launchForwarder`    |
| Claim creator fees       | `feeEscrow`          |

## Testnet

Arc testnet is chain id `5042002`, with its own set in `deployments[5042002]`. The contracts are the same code; the addresses are not.

## A redeploy is a version

These addresses live inside the published package, so a redeploy of any contract ships as a minor version bump, never a patch. Pin `~0.2.0` and you stay on contracts that exist.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.surged.fun/integration/contracts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
