LaserSell API
Build Buy Transaction
Build an unsigned buy transaction to swap SOL or USD1 for tokens via one of the supported DEXs.
The response contains a base64-encoded unsigned VersionedTransaction. Sign it locally with your keypair and submit it to the network.
POST
Build Buy Transaction
Exactly one of
amount or amount_in_total must be provided. amount is automatically converted to atomic units based on the input asset (SOL: 10^9, USD1: 10^6).SDK Examples
Error Responses
See Error Handling for the full error envelope specification and retryable error logic.Authorizations
Your LaserSell API key. Obtain one from the LaserSell dashboard.
Body
application/json
Response
Unsigned buy transaction built successfully.

