Holds the data for the Multisig Account and provides de/serialization functionality for that data

Implements

Constructors

  • Parameters

    • createKey: PublicKey
    • configAuthority: PublicKey
    • threshold: number
    • timeLock: number
    • transactionIndex: bignum
    • staleTransactionIndex: bignum
    • rentCollector: COption<PublicKey>
    • bump: number
    • members: Member[]

    Returns Multisig

Properties

bump: number
configAuthority: PublicKey
createKey: PublicKey
members: Member[]
rentCollector: COption<PublicKey>
staleTransactionIndex: bignum
threshold: number
timeLock: number
transactionIndex: bignum

Methods

  • Returns a readable version of Multisig properties and can be used to convert to JSON and/or logging

    Returns {
        bump: number;
        configAuthority: string;
        createKey: string;
        members: Member[];
        rentCollector: COption<PublicKey>;
        staleTransactionIndex: number | {
            toNumber: (() => number);
        };
        threshold: number;
        timeLock: number;
        transactionIndex: number | {
            toNumber: (() => number);
        };
    }

    • bump: number
    • configAuthority: string
    • createKey: string
    • members: Member[]
    • rentCollector: COption<PublicKey>
    • staleTransactionIndex: number | {
          toNumber: (() => number);
      }
    • threshold: number
    • timeLock: number
    • transactionIndex: number | {
          toNumber: (() => number);
      }
  • Retrieves the account info from the provided address and deserializes the Multisig from its data.

    Parameters

    • connection: Connection
    • address: PublicKey
    • Optional commitmentOrConfig: Commitment | GetAccountInfoConfig

    Returns Promise<Multisig>

    Throws

    Error if no account info is found at the address or if deserialization fails

  • Fetches the minimum balance needed to exempt an account holding Multisig data from rent

    Parameters

    • args: MultisigArgs

      need to be provided since the byte size for this account depends on them

    • connection: Connection

      used to retrieve the rent exemption information

    • Optional commitment: Commitment

    Returns Promise<number>

  • Provides a web3.Connection.getProgramAccounts config builder, to fetch accounts matching filters that can be specified via that builder.

    Parameters

    • programId: PublicKey = ...

      the program that owns the accounts we are filtering

    Returns GpaBuilder<MultisigArgs & {
        accountDiscriminator: number[];
    }>

Generated using TypeDoc