coin-frontTokens

Endpoints for creating, managing, and retrieving meme tokens.


POST /tokens/generate-distribution-wallet

Generate a distribution wallet for collecting taxes. Called at the start of token creation.

Endpoint

POST https://api.vision.meme/tokens/generate-distribution-wallet

Authentication

Public - No authentication required

Request Body

No request body required.

Response (200 OK)

json

{
  "walletId": "550e8400-e29b-41d4-a716-446655440000",
  "address": "Dist1111111111111111111111111111111111111111"
}

Response Fields

Field
Type
Description

walletId

string

UUID for this distribution wallet

address

string

Solana address of distribution wallet

Important Notes

  • The walletId must be included in the create-unsigned request

  • Wallet address is derived deterministically on backend

  • One wallet per token creation session

  • Wallet is non-custodial and transparent

Code Example

javascript


POST /tokens/upload-image

Upload token image to IPFS. Image is automatically optimized to 512x512 JPG.

Endpoint

Authentication

Required - Include JWT token in Authorization header

Request

Content-Type: multipart/form-data

Field
Type
Required
Description

image

File

PNG or JPG image, max 1MB

Image Requirements

  • Formats: PNG, JPG, JPEG

  • Max size: 1MB

  • Recommended: Square (1:1 aspect ratio)

  • Output: Optimized 512x512 JPG on IPFS

Response (200 OK)

json

Response Fields

Field
Type
Description

success

boolean

Upload success status

imageUri

string

Full IPFS URI for the image

imageCid

string

IPFS Content ID (CID)

Code Example

javascript

Errors

400 Bad Request - File too large

json

400 Bad Request - Invalid file type

json

401 Unauthorized - Missing or invalid token

json

Rate Limits

  • 20 requests per hour


POST /tokens/create-unsigned

Create an unsigned Solana Token-2022 transaction with on-chain metadata.

Endpoint

Authentication

Required - Include JWT token in Authorization header

Request Body

Field
Type
Required
Description

name

string

Token name (1-32 chars)

symbol

string

Token symbol (1-10 chars)

description

string

Token description

imageUri

string

IPFS image URI from upload endpoint

walletId

string

Distribution wallet ID

twitter

string

Twitter profile URL

telegram

string

Telegram group URL

website

string

Website URL

transferFeePercent

number

Transfer tax % (0-100)

burnPercent

number

Burn % of tax (0-100)

developerFeePercent

number

Creator share % (0-100)

developerWallet

string

Creator wallet address

distributionInterval

string

Distribution frequency

percentageToSellPerDistribution

number

% to sell per interval (1-100)

rewardToken

string

"SOL" or token mint

minimumHoldingRequirement

string

Minimum tokens to receive rewards

decimals

number

Token decimals (6 or 9)

supply

string

Total supply (in base units)

transferFeeAdjustable

boolean

Can tax be changed later?

immutableMetadata

boolean

Lock metadata permanently?

Distribution Intervals

Valid values: 5m, 10m, 15m, 30m, 1h, 6h, 12h, 24h

Request Example

json

Response (200 OK)

json

Response Fields

Field
Type
Description

transaction

string

Base64-encoded unsigned transaction

transactionId

string

UUID to use when submitting

expiresAt

string

Transaction expiration time

mintKeypair.publicKey

string

Token mint address

Important Notes

  • Transaction expires in 5 minutes

  • Must sign and submit within expiration time

  • Supply is in smallest units (e.g., 1M tokens with 6 decimals = "1000000000000")

  • transferFeeAdjustable: false recommended for trust

  • immutableMetadata: true prevents future changes

Code Example

javascript

Errors

400 Bad Request - Validation errors

json

Rate Limits

  • 5 requests per hour


POST /tokens/submit

Submit a signed transaction to Solana and save token metadata.

Endpoint

Authentication

Required - Include JWT token in Authorization header

Request Body

Field
Type
Required
Description

transactionId

string

UUID from create-unsigned

signedTransaction

string

Base64-encoded signed transaction

Request Example

json

Response (200 OK)

json

Response Fields

Field
Type
Description

success

boolean

Submission success

signature

string

Solana transaction signature

mintAddress

string

Token mint address

token

object

Created token details

Code Example

javascript

Errors

400 Bad Request - Transaction expired

json

400 Bad Request - Invalid transaction

json

Rate Limits

  • 5 requests per hour


GET /tokens

Get paginated list of all visible meme tokens.

Endpoint

Authentication

Public - No authentication required

Query Parameters

Parameter
Type
Default
Description

page

number

1

Page number

limit

number

20

Items per page (max 100)

Request Example

bash

Response (200 OK)

json

Code Example

javascript

Rate Limits

  • 100 requests per 15 minutes


GET /tokens/me

Get list of tokens created by authenticated user.

Endpoint

Authentication

Required - Include JWT token in Authorization header

Response (200 OK)

json

Code Example

javascript

Rate Limits

  • 100 requests per 15 minutes


GET /tokens/:mintAddress

Get detailed information about a specific token.

Endpoint

Authentication

Public - No authentication required

Path Parameters

Parameter
Type
Description

mintAddress

string

Solana token mint address

Request Example

bash

Response (200 OK)

json

Code Example

javascript

Errors

404 Not Found - Token doesn't exist

json

Rate Limits

  • 100 requests per 15 minutes


Complete Token Creation Flow

javascript


Next Steps

  • Distribution Settings - Manage tax distribution

  • DEX Integration - Add liquidity

  • Burns - Track token burns


© 2025 Vision.meme. All rights reserved.

Last updated