Transfer Token
Transfer Pump.fun token from one wallet to another by percentage.
Performas the same function as the Transfer Token endpoint, but instead of sending a specific amount of token, it sends a percentage of the total holdings of the token, for the provided wallet.
Request Body
mint
(string)
The mint address of the token.
fromWallet
(string)
The id of the wallet sending the Token.
recipientWallet
(string)
The id of the wallet receiving the Token.
percentage
(number)
The percentage of holdings of the token to send.
feePayer
(string) nullable
The id of the wallet paying for the transaction.
internalTransfer
(boolean) nullable
If true, the transfer must be between wallets within the same account, otherwise the transfer will fail. If not present or false, the transfer can be sent to any external wallet.
Response
result
(object)
An object containing the solana balance of the wallet.
mint
(string)
The mint address of the token.
fromWallet
(string)
The id of the wallet sending the Token.
recipientWallet
(string)
The id of the wallet receiving the Token.
amountInToken
(string)
The amount of token sent.
signature
(string)
The signature of the transaction.
fromTokenAccount
(string)
The token account of the sender.
recipientTokenAccount
(string)
The token account of the recipient.
solscan
(object)
An object containing Solana Explorer URLs for the wallet.
mint
(string)
The Solana Explorer URL for the token.
fromTokenAccount
(string)
The Solana Explorer URL for the sender token account.
recipientTokenAccount
(string)
The Solana Explorer URL for the recipient token account.
fromWallet
(string)
The Solana Explorer URL for the sender wallet.
recipientWallet
(string)
The Solana Explorer URL for the recipient wallet.
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
Sending half of your Pump.fun tokens from one wallet to another.
Sending a percentage of your Pump.fun token profits to an external wallet.
Endpoint
https://api.tradepump.fun/v1/token/transfer-by-percentage
Example Request
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { PumpApiClient } from 'tradepumpfun';
const client = new PumpApiClient({
apiKey: '<your-api-key>'
});
await client.token.transferTokenByPercentage({
mint: "<mint>",
fromWallet: "<wallet>",
recipientWallet: "<wallet>",
percentage: 100,
feePayer: null,
internalTransfer: false
});
Response Example
{
"result": {
"mint": "<:mint>",
"fromWallet": "<:id>",
"recipientWallet": "<:id-recipientWallet>",
"amountInToken": "1000000000",
"signature": "<:signature>",
"fromTokenAccount": "<:fromTokenAccount>",
"recipientTokenAccount": "<:recipientTokenAccount>",
},
"solscan": {
"mint": "https://solscan.io/token/<:mint>",
"fromTokenAccount": "https://solscan.io/account/<:fromTokenAccount>",
"recipientTokenAccount": "https://solscan.io/account/<:recipientTokenAccount>",
"fromWallet": "https://solscan.io/account/<:id>",
"recipientWallet": "https://solscan.io/account/<:id-recipientWallet>",
"tx": "https://solscan.io/tx/<:signature>"
},
"pumpfun": {
"mint": "https://pump.fun/coin/<:mint>"
}
}