@kagamidigital/salt-sdk-mirror
    Preparing search index...

    Interface TransactionHostCeremony

    Returned by Salt.submitTx. Call wait() to drive the full PROPOSE → SIGN → BROADCAST → SUCCESS lifecycle. Extends EventEmitter — subscribe to TransactionCeremonyEvents with .on() before calling wait() to observe progress.

    interface TransactionHostCeremony {
        addListener<T extends keyof TransactionCeremonyEvents>(
            event: T,
            fn: (
                ...args: ArgumentMap<TransactionCeremonyEvents>[Extract<
                    T,
                    keyof TransactionCeremonyEvents,
                >],
            ) => void,
            context?: any,
        ): this;
        emit<T extends keyof TransactionCeremonyEvents>(
            event: T,
            ...args: ArgumentMap<TransactionCeremonyEvents>[Extract<
                T,
                keyof TransactionCeremonyEvents,
            >],
        ): boolean;
        eventNames(): (keyof TransactionCeremonyEvents)[];
        listenerCount(event: keyof TransactionCeremonyEvents): number;
        listeners<T extends keyof TransactionCeremonyEvents>(
            event: T,
        ): (
            (
                ...args: ArgumentMap<TransactionCeremonyEvents>[Extract<
                    T,
                    keyof TransactionCeremonyEvents,
                >],
            ) => void
        )[];
        off<T extends keyof TransactionCeremonyEvents>(
            event: T,
            fn?: (
                ...args: ArgumentMap<TransactionCeremonyEvents>[Extract<
                    T,
                    keyof TransactionCeremonyEvents,
                >],
            ) => void,
            context?: any,
            once?: boolean,
        ): this;
        on<T extends keyof TransactionCeremonyEvents>(
            event: T,
            fn: (
                ...args: ArgumentMap<TransactionCeremonyEvents>[Extract<
                    T,
                    keyof TransactionCeremonyEvents,
                >],
            ) => void,
            context?: any,
        ): this;
        once<T extends keyof TransactionCeremonyEvents>(
            event: T,
            fn: (
                ...args: ArgumentMap<TransactionCeremonyEvents>[Extract<
                    T,
                    keyof TransactionCeremonyEvents,
                >],
            ) => void,
            context?: any,
        ): this;
        removeAllListeners(event?: keyof TransactionCeremonyEvents): this;
        removeListener<T extends keyof TransactionCeremonyEvents>(
            event: T,
            fn?: (
                ...args: ArgumentMap<TransactionCeremonyEvents>[Extract<
                    T,
                    keyof TransactionCeremonyEvents,
                >],
            ) => void,
            context?: any,
            once?: boolean,
        ): this;
        wait(): Promise<TransactionCeremonyHostResult>;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Remove all listeners, or those of the specified event.

      Parameters

      • Optionalevent: keyof TransactionCeremonyEvents

      Returns this