thirdweb API: Launch ERC20 Tokens with Liquidity Pool & Rewards

thirdweb API: Launch ERC20 Tokens with Liquidity Pool & Rewards

Earlier this week we launched the ability to deploy your own token right from the dashboard, complete with a liquidity pool and developer rewards. Today, we're releasing this same capability via the thirdweb API.

You can now programmatically:
  • Launch your token on a decentralized exchange
  • Set up a Uniswap V3 pool with a pairing and starting price of your choice
  • Earn rewards automatically on every trade
  • Get a token page that your community can use to purchase the token with crypto or fiat payments
fetch('https://api.thirdweb.com/v1/tokens', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-secret-key': 'YOUR_SECRET_TOKEN'
  },
  body: JSON.stringify({
    chainId: 42161,
    name: 'MyToken',
    symbol: 'MT',
    description: 'My very own token',
    imageUrl: 'https://picsum.photos/200',
    from: '0xEfc38EF8C09535b25e364b6d1a7C406D3972f2A9',
    maxSupply: 1000000000,
    sale: {
      type: 'pool',
      startingPrice: '100000',
      amount: 1000000,
      developerFeeBps: 10,
      currency: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831'
    }
  })
})

Your token becomes instantly available in the thirdweb dashboard and tradable via thirdweb Payments.

Supported Chains

This new flow is available on Ethereum, Base, Unichain, Arbitrum, Optimism, Polygon, , BNB, Avalanche C Chain, CELO, Blast, ZKsync, Zora, WorldChain and AppChain mainnets and their respective testnets


Try it out

To get started, check out the thirdweb API reference, or feed the LLMs.txt to your LLM of choice.

curl https://api.thirdweb.com/v1/tokens \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'x-secret-key: YOUR_SECRET_TOKEN' \
  --data '{
  "chainId": 42161,
  "name": "MyToken",
  "symbol": "MT",
  "description": "My very own token",
  "imageUrl": "https://picsum.photos/200",
  "from": "0xEfc38EF8C09535b25e364b6d1a7C406D3972f2A9",
  "maxSupply": 1000000000,
  "sale": {
    "type": "pool",
    "startingPrice": "100000",
    "amount": 1000000,
    "developerFeeBps": 10,
    "currency": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
  }
}'