Skip to main content

index/classes/BundleSubmission.md

A submitted launchpad bundle that can be confirmed through socket or REST.

Constructors​

Constructor​

new BundleSubmission(options): BundleSubmission

Construct a submission; transports normally create this for callers.

Parameters​

ParameterType
options{ bundleId: string; method: string; uniqueKey: string; wait: (options?) => Promise<BundleResult>; }
options.bundleIdstring
options.methodstring
options.uniqueKeystring
options.wait(options?) => Promise<BundleResult>

Returns​

BundleSubmission

Properties​

PropertyModifierTypeDescription
bundleIdreadonlystringBundler-assigned identifier used as the socket event name.
methodreadonlystringChaincode method relayed by the bundler.
uniqueKeyreadonlystringClient-generated idempotency key included in the signed DTO.

Methods​

wait()​

wait(options?): Promise<BundleResult>

Wait for PROCESSED or FAILED confirmation.

Parameters​

ParameterType
options?BundleWaitOptions

Returns​

Promise<BundleResult>

Example​

const result = await submission.wait({ timeoutMs: 30_000 });
console.log(result.status);