Create Token
Create a new Pump.fun token, with the option to buy it immediately.
To create a token, you must provide a valid image file, and a name, symbol, and description, and optionally a website, twitter, and telegram.
The file must be a valid image file, and must be less than 10MB in size.
Request Body
name
(string)
The name of the token.
symbol
(string)
The symbol of the token.
description
(string)
The description of the token.
website
(string) nullable
An optional website for the token.
(string) nullable
An optional Twitter handle for the token.
telegram
(string) nullable
An optional Telegram link for the token.
buyAmountInLamports
(number) nullable
An optional amount in lamports to buy the token immediately.
file
(file)
A valid image file for the token.
Response
result
(object)
The result of the token creation process.
mint
(string)
The mint address of the newly created token.
tx
(string)
The transaction ID of the token creation.
solscan
(object)
An object containing Solana Explorer URLs for the token.
mint
(string)
The Solana Explorer URL for the token mint.
tx
(string)
The Solana Explorer URL for the transaction.
pumpfun
(object)
An object containing Pump.fun specific information.
mint
(string)
The mint address for Pump.fun.
Useful for
Creating a new Pump.fun token.
Creating a new Pump.fun token and immediately placing a buy.
Endpoint
https://api.tradepump.fun/v1/token/create
Example Request
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { PumpApiClient } from 'tradepumpfun';
import fs from 'fs';
const fileLocation = "<path-to-file>";
const blob = fs.readFileSync(fileLocation);
const client = new PumpApiClient({
apiKey: '<your-api-key>'
});
await client.token.create({
name: "Trade Pump Fun Token Test",
symbol: "TPF",
description: "Trade Pump Fun Token Test",
website: "https://tradepump.fun",
file: blob
});
Response Example
{
"result": {
"mint": "<:mint>",
"tx": "<:tx>"
},
"solscan": {
"mint": "<:mint>",
"tx": "<:tx>"
},
"pumpfun": {
"mint": "<:mint>"
}
}