Class: BundlerTransport
Gala Launchpad SDK 9.0.0-rc.5 / index / BundlerTransport
Class: BundlerTransport
Defined in: packages/launchpad-sdk/dist/launchpad/bundle-submission.d.ts:64
The only current launchpad transport: typed-data signing plus /bundle.
Constructors
Constructor
new BundlerTransport(
options):BundlerTransport
Defined in: packages/launchpad-sdk/dist/launchpad/bundle-submission.d.ts:82
Create a bundler transport with an injectable requestor and socket.
Parameters
options
bundleBaseUrl
string
bundleSocketFactory?
The app's own bundler socket (its reconnect settings, its
lifecycle): called once per wait(), the transport only adds its listener for the bundle's
event and removes it when the wait ends; it never disconnects that socket. Takes precedence
over socketFactory.
httpRequestor?
HttpRequestor
launchpadBaseUrl
string
signer
socketFactory?
Opens a socket for one wait(); the transport disconnects it when
the wait ends (default: a socket.io websocket to bundleBaseUrl).
walletAddress
string
Returns
BundlerTransport
Methods
attach()
attach(
attachment):BundleSubmission
Defined in: packages/launchpad-sdk/dist/launchpad/bundle-submission.d.ts:105
A submission for a bundle sent earlier (a page that persisted { bundleId, method, uniqueKey, tokenName } and reloaded): its wait() confirms exactly as a fresh submission's does (the
bundle's socket event raced against the REST confirmation, which also answers for a bundle that
settled before this call). Nothing is signed or sent until wait().
Parameters
attachment
Returns
Throws
LaunchpadSDKError INVALID_BUNDLE_ATTACHMENT (details.field): an empty bundleId or
uniqueKey, a method the bundler does not accept, a CreateSale without its tokenName.
Example
const submission = transport.attach({ bundleId, method: 'BuyWithNative', uniqueKey });
const result = await submission.wait();
submit()
submit(
request):Promise<BundleSubmission>
Defined in: packages/launchpad-sdk/dist/launchpad/bundle-submission.d.ts:114
Sign and submit one allowlisted launchpad write to the bundler.
Parameters
request
LaunchpadWriteRequest
Returns
Promise<BundleSubmission>
Example
const submission = await transport.submit({ method: 'BuyWithNative', dto, stringsInstructions });
await submission.wait();