supra-ts-sdk - v2.0.0
    Preparing search index...

    Function deriveMultisigAccountAddress

    • The address of the multisig account that 0x1::multisig_account::create_with_owners (and create) creates when it runs in the transaction of creatorAddress with the sequence number sequenceNumber: the framework creates a resource account from the creator's address and the creator's sequence number. createMultisigAccount returns this address. It is also the address of the account that a transaction with this sender and sequence number would create when its outcome is unknown (SupraSubmissionOutcomeUnknownError carries both).

      Parameters

      • args: { creatorAddress: AccountAddressInput; sequenceNumber: number | bigint }
        • creatorAddress: AccountAddressInput

          The address of the account that sends the creating transaction.

        • sequenceNumber: number | bigint

          The sequence number of the creating transaction.

      Returns string

      The multisig account's address, 0x followed by 64 lower-case hex digits.

      If creatorAddress is not 1 to 64 hex digits after an optional 0x prefix, or sequenceNumber is not an integer from 0 to 2^64 - 1.

      import { deriveMultisigAccountAddress } from "supra-ts-sdk";

      const multisigAddress = deriveMultisigAccountAddress({ creatorAddress: "0x1234", sequenceNumber: 0n });
      console.log(multisigAddress);