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.
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).Your LaserSell API key. Obtain one from the LaserSell dashboard.
Token mint address to buy (base58).
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
Your wallet public key (base58).
"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"
Maximum slippage tolerance in basis points (e.g., 2000 = 20%).
2000
Human-readable amount to spend (e.g., 0.1 for 0.1 SOL, 10.0 for 10 USD1).
Mutually exclusive with amount_in_total. Exactly one of amount or amount_in_total must be provided.
0.1
Amount to spend in input-asset atomic units (e.g., lamports for SOL).
Mutually exclusive with amount. Exactly one of amount or amount_in_total must be provided.
100000000
Input asset.
SOL, USD1 Routing mode hint.
fast, secure Transaction send mode.
helius_sender, astralane, rpc Optional priority fee tip in lamports.
Partner fee recipient wallet (base58 pubkey).
Partner fee in basis points (max 50 = 0.5%). Mutually exclusive with partner_fee_lamports.
x <= 50Partner fee as flat SOL lamports (max 50,000,000). Mutually exclusive with partner_fee_bps.
x <= 50000000Unsigned buy transaction built successfully.