TrenchLaunch

docs

trenchlaunch protocol documentation

[what is trenchlaunch]

trenchlaunch is a token launcher built for the trenches. when someone dumps your token, trading fees from their sale are automatically redirected to your wallet. survive the trenches and get paid when paper hands panic sell.

[how it works]

1. deploy your token from the trenches

2. enable trench protection to track all trades

3. when paper hands dump, fees are recorded

4. fees from dumpers redirect to original creator

[quick start]

deploy-token.ts
import { TrenchLaunch } from '@trenchlaunch/sdk'

const trench = new TrenchLaunch()

// Deploy a protected token
const token = await trench.deploy({
  name: 'My Token',
  symbol: 'MTK',
  description: 'A trench protected token',
  initialSupply: 1_000_000_000
})

console.log('Token deployed:', token.mint)

[api]

POST /api/launch

deploy a new protected token

{
  "name": "Token Name",
  "symbol": "TKN",
  "description": "Token description",
  "image": "https://...",
  "creator": "wallet_address"
}

GET /api/tokens

get all tokens deployed from the trenches

GET /api/token/[mint]

get token details by mint address

[wallet integration]

supported wallets:

  • - phantom
  • - solflare
  • - backpack
connect-wallet.ts
// Connect to Phantom
const provider = window.phantom?.solana

if (provider?.isPhantom) {
  const response = await provider.connect()
  console.log('Connected:', response.publicKey.toString())
}

[trench protection]

trench protection ensures:

  • - all trades are tracked on-chain
  • - dumper fees redirect to creator
  • - paper hands pay you when they sell
  • - fair launch with no insider deals

[links]