aftermath-ts-sdk - v3.3.3
    Preparing search index...

    The Multisig class provides methods to interact with multisig-related functionality, such as retrieving a multisig address and associated public key for a user.

    Hierarchy (View Summary)

    Index

    Optional low-level provider used to derive multisig data.

    config: CallerConfig

    The mutable configuration used for subsequent requests.

    • Derives a multisig address and public key for a user from the configured shared-custody key and the user's Ed25519 public key.

      The operation is local after the AftermathApi provider is configured. It does not make a network request or sign a transaction.

      Parameters

      • inputs: ApiMultisigUserBody

        An object implementing ApiMultisigUserBody, containing the user's public key as a Uint8Array.

      Returns MultisigData

      An object containing the derived multisig address and public key.

      Error when no AftermathApi provider was supplied or the public key is malformed.


      const afSdk = await Aftermath.create({ network: "MAINNET" });

      const multisig = afSdk.Multisig();

      const data = await multisig.getMultisigForUser({
      userPublicKey: myPublicKeyBytes
      });
      console.log(data.address, data.publicKey);
    • Returns the canonical Aftermath API host for a Sui network.

      To target a custom or local host, pass baseUrl in CallerConfig to the constructor instead.

      Parameters

      • network: SuiNetwork

        The Sui network whose host to return.

      Returns string

      The network's HTTPS or local HTTP API host.