Skip to main content

SolanaLaser API

SolanaLaser is a server-signed Solana execution API. You create a Laser API key once, then use it to manage wallets, trade Pump tokens, launch tokens, send assets, and claim cashback. Your application sends HTTP requests; it does not build or sign Solana transactions.

Think of SolanaLaser as a programmatic trading terminal. Platforms such as Axiom, Photon, GMGN, Trojan, and Terminal can generate a wallet for you and store the private key securely. SolanaLaser follows the same managed-wallet principle, but without a trading UI. Instead, you receive a SolanaLaser API key that can own any number of wallets, so you can build your own automated Solana trading flows.

How It Works

Each API key owns managed wallets.

  • Default wallet: used automatically when a request omits wallet.
  • Selected wallet: pass wallet with the public key of another managed wallet attached to the same API key.
  • Server signing: SolanaLaser stores managed-wallet keys encrypted and decrypts them only while signing an execution request.
  • Transaction result: execution endpoints return a Solana signature. With confirm: true (the default), they wait for confirmation before responding.

Quick Start

Start by creating your SolanaLaser account, API key, and first default wallet. This setup request does not need authentication because it is the action that creates your credentials.

Request

const response = await fetch("https://api.solanalaser.xyz/v1/laser/setup", {
method: "POST",
});

const setup = await response.json();

Response: 200

{
"api_key": "sl_your_new_key",
"wallet_public_key": "MANAGED_WALLET_PUBLIC_KEY",
"wallet_private_key": "BASE58_64_BYTE_SECRET_KEY"
}

After setup, save the API key and private key immediately. The private key is returned only once. Fund wallet_public_key with SOL, then use your SolanaLaser API key as the x-api-key header when calling the Laser API.

With the Laser API you can buy or sell tokens, launch a token, submit a Jito bundle, create or import wallets, send SOL or SPL tokens, split SOL, consolidate SOL, and check or claim cashback.

API Conventions

  • Base URL: https://api.solanalaser.xyz
  • Authenticated requests use x-api-key: sl_....
  • Requests and responses are JSON. Examples use native JavaScript fetch.
  • Private keys are never accepted by execution endpoints. Importing a wallet is the only endpoint that receives one.
  • Errors use { "code": "...", "detail": "..." }. See Errors.

Guides

  • Wallets: create, import, select, and delink managed wallets.
  • Laser API: setup, trading, token creation, and Jito bundles.
  • SOL Transfers: send assets, split SOL, and consolidate wallets.
  • Cashback: check and claim Pump and PumpSwap cashback.