index/interfaces/LaunchpadWriteTransport.md
Transport seam for launchpad writes; signing belongs to the implementation.
Methods
attach()
attach(
attachment):BundleSubmission
A submission for a bundle sent earlier, whose wait() confirms it exactly as the submission
submit returned would. Nothing is signed or sent until wait().
Parameters
| Parameter | Type |
|---|---|
attachment | BundleAttachment |
Returns
Example
const submission = transport.attach({ bundleId, method: 'BuyWithNative', uniqueKey });
await submission.wait();
bundle submission attachment
submit()
submit(
request):Promise<BundleSubmission>
Submit an unsigned DTO and its resource instructions.
Parameters
| Parameter | Type |
|---|---|
request | { dto: Record<string, unknown>; method: "SellExactToken" | "SellWithNative" | "CreateSale" | "BuyWithNative" | "BuyExactToken"; stringsInstructions: string[]; } |
request.dto | Record<string, unknown> |
request.method | "SellExactToken" | "SellWithNative" | "CreateSale" | "BuyWithNative" | "BuyExactToken" |
request.stringsInstructions | string[] |
Returns
Promise<BundleSubmission>
Example
const submission = await transport.submit({ method: 'CreateSale', dto, stringsInstructions });
await submission.wait();
bundle submission sell exact token with native create sale buy strings instructions