Transfer Sol

POST

Transfer Sol from one wallet to another.

Secure internal transfer between two platform wallets if internalTransfer is true.

Request Body

fromWallet

(string)

The id of the wallet sending the Sol.

recipientWallet

(string)

The id of the wallet receiving the Sol.

amountInLamports

(number)

The amount of Sol to send, in lamports.

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.


fromWallet

(string)

The id of the wallet sending the Sol.

recipientWallet

(string)

The id of the wallet receiving the Sol.

amountInLamports

(number)

The amount of Sol sent, in lamports.

signature

(string)

The signature of the transaction.

solscan

(object)

An object containing Solana Explorer URLs for the wallet.


fromWallet

(string)

The Solana Explorer URL for the wallet.

recipientWallet

(string)

The Solana Explorer URL for the wallet.

tx

(string)

The Solana Explorer URL for the transaction.

Useful for

  • Sending Sol from one wallet to another.

  • Sending profits to an external wallet.

Endpoint

https://api.tradepump.fun/v1/solana/transfer

Example Request

Node
Curl
Axios
1 2 3 4 5 6 7 8 9 10 11 12 13 import { PumpApiClient } from 'tradepumpfun'; const client = new PumpApiClient({ apiKey: '<your-api-key>' }); await client.solana.transfer({ fromWallet: "<wallet>", recipientWallet: "<wallet>", amountInLamports: 1000000000, feePayer: null, internalTransfer: false });

Response Example

{ "result": { "fromWallet": "<:id>", "recipientWallet": "<:id-recipientWallet>", "amountInLamports": 1000000000, "signature": "<:signature>", }, "solscan": { "fromWallet": "https://solscan.io/account/<:id>", "recipientWallet": "https://solscan.io/account/<:id-recipientWallet>", "tx": "https://solscan.io/tx/<:signature>" } }