Overview
The LaserSell API supports adding a partner fee to any buy or sell transaction. This lets integrators collect a fee routed to a specified wallet as part of the swap instruction. Partner fees are optional and configured per request. They are not related to LaserSell’s own protocol fee.Fee Modes
You can specify the fee in one of two ways. These modes are mutually exclusive; do not set both on the same request.Basis Points Mode
Setpartner_fee_bps to charge a percentage of the swap value.
| Field | Type | Description |
|---|---|---|
partner_fee_recipient | string | Recipient wallet address (base58 pubkey). |
partner_fee_bps | number | Fee in basis points. Max 50 (0.5%). |
Flat Lamports Mode
Setpartner_fee_lamports to charge a fixed amount in lamports.
| Field | Type | Description |
|---|---|---|
partner_fee_recipient | string | Recipient wallet address (base58 pubkey). |
partner_fee_lamports | number | Fee in lamports. Max 50,000,000 (0.05 SOL). |
Limits
| Mode | Maximum Value | Equivalent |
|---|---|---|
| bps | 50 bps | 0.5% |
| lamports | 50,000,000 lamports | 0.05 SOL |
400 error.
Code Examples
Sell with BPS Fee
Buy with Flat Lamports Fee
Enterprise: Custom Monetization
For Enterprise partners processing significant volume, we offer custom monetization arrangements that go beyond the standard partner fee system. These are structured on a per-partner basis and can include:- Custom revenue sharing routed on-chain as part of every transaction your users execute through LaserSell.
- Custom split configurations tailored to your business model and volume.
Important Notes
- Partner fees are available on the Advanced and Enterprise tiers. See Rate Limits and Tiers.
- The
partner_fee_recipientwallet must be a valid base58 Solana public key. - The recipient does not need to have an existing account; the fee instruction will create one if necessary.
- Setting both
partner_fee_bpsandpartner_fee_lamportson the same request will result in a400error. - Partner fees are deducted from the swap output and routed atomically within the same transaction.

