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

    Class HostAccountCeremony

    An AccountCeremony hosted by the account creator. Adds the host-only ability to nudge co-signers who have not yet joined the huddle.

    Obtained from Salt.createAccount. Co-signers who join an existing ceremony — via Salt.joinAccountCeremony or a NudgeListener nudge — receive a plain AccountCeremony, which has no nudge method: only the host that minted the session can announce it.

    const ceremony = await salt.createAccount({ ... });
    nudgeButton.onclick = () => ceremony.nudge();
    const { account } = await ceremony.wait();

    Hierarchy (View Summary)

    Index

    Properties

    sessionId: string

    MPC session ID for this ceremony.

    prefixed: string | boolean

    Accessors

    • get accountId(): string

      The account this ceremony is creating. Available before completion (e.g. during keygen), so consumers can act on the account mid-ceremony — notably to re-nudge co-signers who are not yet in the huddle.

      Returns string

    • get isReady(): boolean

      true once all required parties are present.

      Returns boolean

    • get onlineSigners(): string[]

      Addresses currently present in the huddle, mapped from numeric party indices.

      Returns string[]

    Methods

    • Expected signers not currently present in the huddle.

      Returns string[]

    • Re-send the keygen nudge to co-signers who are not yet in the huddle: call it whenever you want to prompt the signers again. Presence is observed via the presence/ready events, so a freshly nudged signer appears as isOnline once it joins.

      Parameters

      • Optionalrecipients: string[]

        Addresses to nudge. Defaults to every expected signer not currently present in the huddle. The host is always excluded, so it is safe to pass the full signer list.

      Returns string[]

      The addresses actually nudged.

      ValidationError if a recipient is not one of the ceremony's signers.

      const ceremony = await salt.createAccount({ ... });
      nudgeButton.onclick = () => ceremony.nudge();
    • Remove all listeners, or those of the specified event.

      Parameters

      • Optionalevent: keyof AccountCeremonyEvents

      Returns this