---
title: "Create token launch transaction"
method: POST
path: "/token-launch/create-launch-transaction"
tags: ["Token Launch"]
---

# Create token launch transaction

`POST /token-launch/create-launch-transaction`

## Request

- Base URL: `https://public-api-v2.bags.fm/api/v1`
- URL: `https://public-api-v2.bags.fm/api/v1/token-launch/create-launch-transaction`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/bags/apis/bags-public-api-v2/docs/token-launch/create-launch-transaction/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a token launch transaction (already signed with token mint)

## Request body

- object
  - `ipfs` string, required: IPFS URL of the token metadata
  - `tokenMint` string, required: Public key of the token mint
  - `wallet` string, required: Public key of the wallet
  - `initialBuyLamports` number, required: Initial buy amount in lamports
  - `configKey` string, required: Config key from create-config endpoint
  - `tipWallet` string: Base58 encoded Solana public key of the tip recipient wallet
  - `tipLamports` number: Tip amount in lamports

## Response `200`

Successfully created token launch transaction

- object
  - `success` boolean, required
  - `response` string: Base58 encoded serialized transaction

## Other responses

- `400`: Bad request - Invalid parameters or validation errors
- `401`: Unauthorized - Invalid or missing API key
- `500`: Internal server error

---

[API](https://skmtc.dev/bags/apis/bags-public-api-v2.md) - [All operations](https://skmtc.dev/bags/apis/bags-public-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/bags/apis/bags-public-api-v2/revisions/4a14b82cd39d?raw)
