What is the LaserSell API?
The LaserSell API lets you build, sign, and submit Solana swap transactions programmatically. It exposes two surfaces:- LaserSell API (REST): Build unsigned buy and sell transactions on demand via
POST /v1/sellandPOST /v1/buy. - Exit Intelligence Stream (WebSocket): Connect a persistent session that watches your wallets, tracks positions, evaluates your strategy in real time, and delivers pre built exit transactions when thresholds are met.
Non Custodial Model
LaserSell is fully non custodial. The server constructs optimized swap instructions but cannot execute them without your signature. This means:- You hold the keypair at all times.
- The API returns a base64 encoded unsigned transaction.
- You sign with your local keypair.
- You submit via RPC, Helius Sender, or Astralane.
Architecture at a Glance
SDK Languages
Official SDKs are available in four languages, each providing the same capabilities:| Language | Package | Modules |
|---|---|---|
| TypeScript | @lasersell/lasersell-sdk | ExitApiClient, StreamClient, StreamSession, tx helpers |
| Python | lasersell-sdk | ExitApiClient, StreamClient, StreamSession, tx helpers |
| Rust | lasersell-sdk | exit_api, stream, tx |
| Go | github.com/lasersell/lasersell-sdk/go | ExitAPIClient, stream.StreamClient, stream.StreamSession, tx helpers |
What to Read Next
- Authentication: Get your API key and start making requests.
- Quickstart: Build your first sell transaction in under five minutes.
- Exit Intelligence Stream: Learn when to use the WebSocket stream instead of REST.

