API
Overview

API Documentation

Build powerful applications with our comprehensive token deployment and data API.

Overview

The Digifi API enables developers to programmatically deploy tokens with automated liquidity provision on Base Mainnet. Our API handles the entire deployment process, including smart contract deployment, Uniswap V4 pool creation, liquidity initialization, and rewards checking.

What You Can Do

  • Deploy Tokens: Create ERC20 tokens with automatic DEX listing
  • Check Rewards: Monitor pending rewards for any token
  • Track Deployments: Access deployment history and statistics
  • Manage Usage: Monitor API limits and consumption

Getting Started

1. Get Your API Key

To access the Digifi API, you'll need an API key. Get yours at:

https://www.digifi.fun/api-key (opens in a new tab)

Sign in to your account to access your API dashboard and generate your unique API key.

2. API Dashboard

Your API dashboard at https://www.digifi.fun/api-key (opens in a new tab) provides:

  • API Key Management: View and regenerate your API keys
  • Usage Monitoring: Track your monthly deployment usage
  • Monthly Limits: Monitor deployments remaining (150/month free tier)
  • Usage Statistics: View deployment history and success rates

3. Base URL

All API requests should be made to:

https://api.digifi.fun

4. Authentication

See the Authentication page for detailed authentication instructions.

Quick Start Example

Here's a simple example to deploy a token:

curl -X POST https://api.digifi.fun/deployToken \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "name": "My Token",
    "symbol": "MTK",
    "chain_id": "8453",
    "apiKey": "YOUR_API_KEY"
  }'

Available Endpoints

Deploy Token

Deploy new ERC20 tokens with automatic liquidity pool creation.

Key Features:

  • ERC20 token deployment
  • Automatic Uniswap V4 pool creation
  • Liquidity initialization
  • LP NFT management

Check Rewards

Check pending rewards for any token without executing transactions.

Key Features:

  • Check pending token and ETH rewards
  • View LP initialization status
  • No gas cost (read-only operation)
  • Real-time reward tracking

Claim Rewards

Execute on-chain transactions to claim and distribute accumulated trading fees from your tokens.

Key Features:

  • Actually claims rewards from Uniswap V4 LP
  • Distributes token fees to creator
  • Distributes ETH fees to platform
  • Returns transaction hash for verification

API Limits

Free Tier

  • 150 deployments per month
  • 60 requests per minute
  • 5 concurrent requests maximum
  • Rate limits reset monthly (1st of each month)

Usage Tracking

Monitor your usage in real-time through your API dashboard (opens in a new tab):

  • Track remaining deployments
  • View request history
  • Monitor rate limit status
  • Check monthly reset date

Rate Limit Headers

API responses include rate limit information:

X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
X-RateLimit-Reset: 1699564800

Network Information

Supported Networks

Currently, the API supports:

  • Base Mainnet: Chain ID 8453

Future networks (coming soon):

  • Ethereum Mainnet
  • Arbitrum
  • Optimism
  • Polygon

Base Mainnet Details

Response Format

All API responses follow a consistent format:

Success Response:

{
  "success": true,
  "message": "Operation completed successfully",
  "data": { /* operation-specific data */ }
}

Error Response:

{
  "success": false,
  "error": "Error message",
  "details": "Additional error information"
}

Best Practices

Security

  • ✓ Never commit API keys to version control
  • ✓ Use environment variables for API keys
  • ✓ Rotate keys regularly
  • ✓ Don't expose keys in client-side code
  • ✓ Use HTTPS only

Performance

  • ✓ Implement retry logic for transient failures
  • ✓ Cache responses when appropriate
  • ✓ Monitor your usage to avoid rate limits
  • ✓ Use batch operations when available

Error Handling

  • ✓ Always check the success field in responses
  • ✓ Log error details for debugging
  • ✓ Implement proper fallback mechanisms
  • ✓ Handle network timeouts gracefully

See Error Handling for detailed error handling strategies.

Code Examples

We provide complete code examples in multiple languages:

  • JavaScript / Node.js
  • Python
  • TypeScript

View All Code Examples →

Support

Get Help

Report Issues

When reporting issues, please include:

  • Your API key (first 10 characters only)
  • Request parameters (without sensitive data)
  • Error message and response
  • Timestamp of the request
  • Deployment ID (if applicable)

What's Next?

Choose your path:


Ready to start building? Get your API key → (opens in a new tab)