trenchlaunch protocol documentation
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.
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
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)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
supported wallets:
// Connect to Phantom
const provider = window.phantom?.solana
if (provider?.isPhantom) {
const response = await provider.connect()
console.log('Connected:', response.publicKey.toString())
}trench protection ensures: