Function submitTxBlocking

  • Name

    submitTxBlocking

    Summary

    Signs and submits a transaction. It blocks the execution flow until the transaction is in a block or in a finalized block.

    Returns

    Returns a pair of objects : - The first returned object contains some block information as the block hash, the block header and block extrinsics. - The second returned object is an array of events which gets populated automatically once the operation is finished.

    Parameters

    • tx: `0x${string}`

      Unsigned unsubmitted transaction Hash. The Hash is only valid for 5 minutes.

    • waitUntil: TernoaConstants.WaitUntil

      Execution trigger that can be set either to BlockInclusion or BlockFinalization.

    • Optional keyring: IKeyringPair

      Account that will sign the transaction if provided

    Returns Promise<Blockchain.SubmitTxBlockingType>

Generated using TypeDoc