Dev
Digifi Background

API Reference

Build powerful applications with our token API

Deploy a Token

cURL Example
curl -X POST \
-H "Content-Type: application/json" \
-d '{ "name": "MyToken", "symbol": "MTK", "chain_id": "8453", "apiKey": "dg_30808C73C230D1BBC..." }' \
https://api.digifi.fun/deployToken

This endpoint returns a structured JSON response with deployment details upon completion.

Success Response (200)

JSON Response
{
  "success": true,
  "message": "Deployment completed successfully",
  "data": {
    "name": "TokenName",
    "symbol": "TKN",
    "chain_id": "8453",
    "tokenAddress": "0xdc35bce492135d04dBA61697ccbE94c485c34A93",
    "poolAddress": "0x11852AA3665659B01398714bD9E58Abb7798854d",
    "positionId": "123",
    "explorerUrl": "https://basescan.org/token/0xdc35bce492135d04dBA61697ccbE94c485c34A93",
    "feeCollector": "0x1ab186D064171DB900fa6701A3eF5C5153ecbC24"
  },
  "deploymentId": "690cc7144dad8378507f65eb"
}

Error Response (500)

JSON Response
{
  "success": false,
  "message": "Deployment failed",
  "error": "Deployment process exited with code: 1",
  "details": "full deployment output...",
  "deploymentId": "690cc7144dad8378507f65eb"
}

API Configuration

Base URL

https://api.digifi.com/v1

Authentication

Authorization: Bearer YOUR_API_KEY

Available Endpoints

POST/deployToken

Deploy a new token with specified parameters. Returns a structured JSON response with deployment details including token address, pool address, position ID, and explorer URL.

Parameters:

  • name - Token name
  • symbol - Token symbol
  • chain_id - Blockchain network ID
  • apiKey - Your API key
GET/tokens

Retrieve a list of all deployed tokens with their metadata.

GET/tokens/{tokenAddress}

Get detailed information about a specific token by its address.

Ready to Start Building?

Get your API key and start integrating Digifi's token deployment capabilities into your applications.