Function submitTxBlocking

  • Parameters

    • tx: `0x${string}`

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

    • waitUntil: 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<SubmitTxBlockingType>

    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. - The third returned argument is the submitted transaction hash.

    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.

Generated using TypeDoc