Skip to content

MultisigAccount

@algorandfoundation/algokit-utils / types/account / MultisigAccount

types/account.MultisigAccount

Account wrapper that supports partial or full multisig signing.

new MultisigAccount(multisigParams, signingAccounts): MultisigAccount

NameType
multisigParamsMultisigMetadata
signingAccounts(default | SigningAccount)[]

MultisigAccount

src/types/account.ts:46

_addr: Address

src/types/account.ts:23


_params: MultisigMetadata

src/types/account.ts:21


_signer: TransactionSigner

src/types/account.ts:24


_signingAccounts: (default | SigningAccount)[]

src/types/account.ts:22

get addr(): Readonly<Address>

The address of the multisig account

Readonly<Address>

src/types/account.ts:37


get params(): Readonly<MultisigMetadata>

The parameters for the multisig account

Readonly<MultisigMetadata>

src/types/account.ts:27


get signer(): TransactionSigner

The transaction signer for the multisig account

TransactionSigner

src/types/account.ts:42


get signingAccounts(): readonly (default | SigningAccount)[]

The list of accounts that are present to sign

readonly (default | SigningAccount)[]

src/types/account.ts:32

sign(transaction): Uint8Array

Sign the given transaction

NameTypeDescription
transactionUint8Array | TransactionEither a transaction object or a raw, partially signed transaction

Uint8Array

The transaction signed by the present signers

Example

const signedTxn = multisigAccount.sign(myTransaction);

src/types/account.ts:65