Easily send SOL to multiple wallets in a single transaction, streamlining your Solana transactions and saving time.

Endpoint

POST: https://pumpapi.fun/api/batch_sender

Request Body

The request body should contain the following parameters:

ParameterTypeDescriptionRequired
sol_amountnumberThe amount of SOL to send to each walletYES
walletsarray<string>An array/list of wallet addresses to send SOL toYES
priorityFeenumberThe priority fee for the transactionNO
userPrivateKeystringThe user’s private key to sign the transactionYES

Examples Usage:

import requests



url = "https://pumpapi.fun/api/batch_sender"

payload = {

    "sol_amount": 1.0,

    "wallets": ["wallet_address_1", "wallet_address_2", ...],

    "priorityFee": 0.001,

    "userPrivateKey": "your_private_key_here"

}



response = requests.post(url, json=payload)



if response.status_code == 200:

    transaction_id = response.json()["tx_hash"]

    print(f"Transaction ID: {transaction_id}")

else:

    print(f"Error: {response.status_code} - {response.text}")

Replace the sol_amount, wallets, priorityFee, and userPrivateKey values with the actual values you want to pass.

Response

The response will contain the transaction ID:

{

  tx_hash: '5aowX9pPiRHXvc5TS6FpbExENnyo9n3N4J....'

}

API Parameters

The following parameters are:

  • sol_amount
  • wallets
  • priorityFee
  • userPrivateKey

Error Codes

  • 400 Bad Request: Invalid request parameters or missing required fields.
  • 401 Unauthorized: Authentication failed.
  • 404 Not Found: The requested resource (endpoint) is not found.
  • 429 Too Many Requests: Rate limit exceeded.
  • 500 Internal Server Error: Unexpected server-side error.

API Codes

  • 200 OK: The request was successful.