salt-sdk
    Preparing search index...

    Interface Transaction

    Represents a Transaction throughout its entire lifecycle.

    interface Transaction {
        getRequiredSignatures(): number;
        wait(): Promise<TransactionObject>;
    }
    Index

    Methods

    • Returns the number of signatures required for the transaction to complete.

      Returns number

    • Wait for the transaction to complete (success or failure)

      Returns Promise<TransactionObject>

      a promise that resolves when the transaction completes example: const transaction = new Transaction( saltSocket, environment, authToken, requiredSignatures, params ); await transaction.wait();