• Submits a signed SubmittableExtrinsic and attaches a callback to monitor the inclusion status of the transaction and possible errors in the execution of extrinsics. Returns a promise to that end which by default resolves upon finalization or rejects if any errors occur during submission or execution of extrinsics. This behavior can be adjusted via optional parameters or via the ConfigService.

    Transaction fees will apply whenever a transaction fee makes it into a block, even if extrinsics fail to execute correctly!

    Parameters

    • tx: SubmittableExtrinsic

      The SubmittableExtrinsic to be submitted. Most transactions need to be signed, this must be done beforehand.

    • opts: Partial<SubscriptionPromise.Options> = {}

      Allows overwriting criteria for resolving/rejecting the transaction result subscription promise. These options take precedent over configuration via the ConfigService.

    Returns Promise<ISubmittableResult>

    A promise which can be used to track transaction status. If resolved, this promise returns ISubmittableResult that has led to its resolution.