Bundle buy Pump.fun Token
Bundle together multiple buys from multiple wallets at once for a particular token.
Request Body
buys
(object)
An array of buy objects.
fromWallet
(string)
The id of the wallet buying the token.
amountInLamports
(number)
The amount of Sol to spend on the token buy.
slippage
(number) nullable
The slippage for the transaction, overrides the main slippage if present.
mint
(string)
The mint address of the token.
feePayer
(string)
The id of the wallet paying for the transaction.
slippage
(number) nullable
The main slippage for the transaction, if not provided, defaults to 0.5%.
priorityUnitLimit
(number) nullable
The maximum amount of priority units the user is willing to pay for the transaction.
priorityUnitPrice
(number) nullable
The priority unit price for the transaction.
Response
result
(object)
An object containing the solana balance of the wallet.
mint
(string)
The mint address of the token.
signature
(string)
The signature of the transaction.
transactionResult
(object)
The result of the transaction.
solscan
(object)
An object containing Solana Explorer URLs for the wallet.
mint
(string)
The Solana Explorer URL for the token mint.
tx
(string)
The Solana Explorer URL for the transaction.
pumpfun
(object)
An object containing the Pump.fun URL for the token.
mint
(string)
The Pump.fun URL for the token.
Useful for
Buying a Pump.fun token on multiple wallets at once.
Building a complex Pump.fun token sniper bot.
Endpoint
https://api.tradepump.fun/v1/trade/bundle/buy
Example Request
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { PumpApiClient } from 'tradepumpfun';
const client = new PumpApiClient({
apiKey: '<your-api-key>'
});
await client.bundle.buy({
buys: [
{
fromWallet: "<wallet-1>",
amountInLamports: 1000000000,
slippage: 500,
},
{
fromWallet: "<wallet-2>",
amountInLamports: 1000000000,
slippage: 500,
},
],
mint: "<mint>",
feePayer: "<wallet-1>",
slippage: 500,
priorityUnitLimit: null,
priorityUnitPrice: null,
});
Response Example
{
"result": {
"mint": "<:mint>",
"signature": "<:signature>",
"transactionResult": {
"success": true,
"signature": "<:signature>",
"results": "<:tx-result>"
},
},
"solscan": {
"mint": "https://solscan.io/token/<:mint>",
"tx": "https://solscan.io/tx/<:signature>"
},
"pumpfun": {
"mint": "https://pump.fun/coin/<:mint>"
}
}