Skip to main content

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​

ParameterType
attachmentBundleAttachment

Returns​

BundleSubmission

Example​

const submission = transport.attach({ bundleId, method: 'BuyWithNative', uniqueKey });
await submission.wait();

submit()​

submit(request): Promise<BundleSubmission>

Submit an unsigned DTO and its resource instructions.

Parameters​

ParameterType
request{ dto: Record<string, unknown>; method: "SellExactToken" | "SellWithNative" | "CreateSale" | "BuyWithNative" | "BuyExactToken"; stringsInstructions: string[]; }
request.dtoRecord<string, unknown>
request.method"SellExactToken" | "SellWithNative" | "CreateSale" | "BuyWithNative" | "BuyExactToken"
request.stringsInstructionsstring[]

Returns​

Promise<BundleSubmission>

Example​

const submission = await transport.submit({ method: 'CreateSale', dto, stringsInstructions });
await submission.wait();