Easily create new Solana wallets with just one API call, perfect for development, testing, or any use case where you need to generate multiple wallets quickly.

Endpoint

GET https://pumpapi.fun/api/generate_wallets

Parameters

ParameterTypeRequiredDescription
nintegerThe number of wallets to generate

Basic Usage Examples

# Python (using requests)
import requests

url = "https://pumpapi.fun/api/generate_wallets"
params = {"n": 5}  # Optional parameter to limit results

response = requests.get(url, params=params)

if response.status_code == 200:
    data = response.json()
    print(data)  # Process the JSON response
else:
    print(f"Error retrieving data: {response.status_code}")

Example Response

{
  wallets: [
    'BvJHEjipmxTuxSic1kUEBKz...',
    '4caWJKX3934B3KQqoj8FJri...',
    'H8qBYoshPRijBmQX3eGq28V...',
  ]
}

Required Parameters

  • n: The number of wallets to generate

Note: You can adjust the number of wallets to generate by changing the value of the n parameter in the request URL. For example, to generate 10 wallets, use https://pumpapi.fun/api/generate_wallets?n=10.

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.