Token Creation Flow Documentation

This document describes the complete flow for creating a token on the Nad.fun. The process consists of three sequential API calls.


πŸ“‹ Overview

The token creation process follows these steps:

  1. Upload Image - Upload and validate the token image
  2. Upload Metadata - Create and store token metadata
  3. Mine Salt - Generate a vanity address salt for token deployment
  4. Create Token - Deploy token on blockchain using metadata and salt
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Upload Image   β”‚ ───> β”‚ Upload Metadata  β”‚ ───> β”‚   Mine Salt     β”‚ ───> β”‚  Create Token   β”‚
β”‚ /metadata/image β”‚      β”‚ /metadata/metadataβ”‚      β”‚  /token/salt    β”‚      β”‚   (Contract)    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
       β”‚                         β”‚                          β”‚                          β”‚
       β–Ό                         β–Ό                          β–Ό                          β–Ό
  image_uri              metadata_uri                    salt                   token address
   is_nsfw                                              address                   pool address


🌐 API Base URL

Production: https://api.nad.fun

Contract

BondingCurveRouter="0x6F6B8F1a20703309951a5127c45B49b1CD981A22"
Lens="0x7e78A8DE94f21804F7a17F4E8BF9EC2c872187ea"