Presale Deployment

Presales are a way for allowing a group of token purchasers to receive tokens at the same price. Currently, presales last two hours from creation and distribute 55% of the token supply for 5.5 ETH.

Please see Presale Token Deployments for more info.

To deploy a new presale token contract, use the following request:

POST https://www.clanker.world/api/tokens/deploy/presale

Headers:

x-api-key: your_api_key
Content-Type: application/json

Request Body

{
  "name": "My Token",
  "symbol": "MTK",
  "requestKey": "unique-request-identifier",
  "splits": {
    "addresses": ["0x123...", "0x456..."],
    "percentages": [60, 40]
  }
}

Response

{
  "success": true,
  "data": {
    "contractAddress": "0x...",
    "deploymentTx": "0x...",
    "name": "My Token",
    "symbol": "MTK",
    "createdAt": "2024-02-21T08:30:15.123Z"
  }
}

Example Request

curl -X POST 'https://www.clanker.world/api/tokens/deploy/presale' \
-H 'Authorization: Bearer YOUR_CLANKER_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
  "name": "My Token",
  "symbol": "MTK",
  "requestKey": "unique-request-123",
  "requestorAddress": "0x1234567890abcdef1234567890abcdef12345678"
}'

Notes

Request Key Generation

  • Generate a unique 32-character string for each request

  • This is used as an idempotency key to prevent duplicate token deployments

Creator Rewards

  • 40% of creator rewards will accrue to the requestorAddress

  • Ensure the provided address is correct and accessible

Refunds

In the event a presale does not reach its goal within the time limit, not tokens are created and all participants may be refunded with a publicly callable refund method on the presale contract.

Please refer to Deployed Contracts for the current presale contract deployment.

Last updated