Documentation Index
Fetch the complete documentation index at: https://docs.lasersell.io/llms.txt
Use this file to discover all available pages before exploring further.
エンドポイント
ヘッダー
| ヘッダー | 必須 | 説明 |
|---|---|---|
Content-Type | はい | application/jsonである必要があります |
x-api-key | はい | LaserSell APIキー |
リクエストボディ: BuildBuyTxRequest
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
mint | string | はい | 購入するトークンミントアドレス(base58)。 |
user_pubkey | string | はい | ウォレット公開鍵(base58)。 |
amount | number | いいえ* | 使用する人間可読金額(例: SOLの場合0.1、USD1の場合10.0)。amount_in_totalと排他的。 |
amount_in_total | number | いいえ* | 入力アセットのatomic unitsでの使用金額(例: SOLの場合lamport)。amountと排他的。 |
slippage_bps | number | はい | ベーシスポイントでの最大スリッページ許容値(例: 2000 = 20%)。 |
input | string | いいえ | 入力アセット: "SOL"(デフォルト)または"USD1"。 |
mode | string | いいえ | ルーティングモードヒント。有効値: "fast"、"secure"。デフォルト: "fast"。 |
send_mode | string | いいえ | トランザクション送信モード: "helius_sender"、"astralane"、または"rpc"。 |
tip_lamports | number | いいえ | lamportでのオプションの優先度手数料チップ。 |
partner_fee_recipient | string | いいえ | パートナーフィー受取ウォレット(base58 pubkey)。 |
partner_fee_bps | number | いいえ | ベーシスポイントでのパートナーフィー(最大50 = 0.5%)。partner_fee_lamportsと排他的。 |
partner_fee_lamports | number | いいえ | フラットSOL lamportでのパートナーフィー(最大50,000,000)。partner_fee_bpsと排他的。 |
*
amountまたはamount_in_totalのいずれか1つのみを指定する必要があります。amountはinputアセットに基づいてatomic unitsに自動変換されます(SOL: 10^9、USD1: 10^6)。レスポンス: BuildTxResponse
| フィールド | 型 | 説明 |
|---|---|---|
tx | string | Base64エンコードされた未署名Solana VersionedTransaction。 |
route | object | オプションのルーティングメタデータ。 |
debug | object | オプションのデバッグ情報。 |
curl例
人間可読なamountを使用:
amount_in_totalを使用:

