models.account | Algorand Developer Portal

models.account

Attributes

DISPENSER_ACCOUNT_NAME

Classes

TransactionSignerAccount A basic transaction signer account.
SigningAccount Holds the private key and address for an account.
MultisigMetadata Metadata for a multisig account.
MultiSigAccount Account wrapper that supports partial or full multisig signing.
LogicSigAccount Account wrapper that supports logic sig signing.

Module Contents

algokit*utils.models.account.DISPENSER_ACCOUNT_NAME *= ‘DISPENSER’_

class algokit_utils.models.account.TransactionSignerAccount

A basic transaction signer account.

address : str

signer : algosdk.atomic_transaction_composer.TransactionSigner

class algokit_utils.models.account.SigningAccount

Holds the private key and address for an account.

Provides access to the account’s private key, address, public key and transaction signer.

private*key *: str_

Base64 encoded private key

address : str = ”

Address for this account

property public*key *: bytes_

The public key for this account.

property signer : algosdk.atomic_transaction_composer.AccountTransactionSigner

Get an AccountTransactionSigner for this account.

static new_account() → SigningAccount

Create a new random account.

class algokit_utils.models.account.MultisigMetadata

Metadata for a multisig account.

Contains the version, threshold and addresses for a multisig account.

version : int

threshold : int

addresses : list[str]

class algokit_utils.models.account.MultiSigAccount(multisig_params: MultisigMetadata, signing_accounts: list[ SigningAccount])

Account wrapper that supports partial or full multisig signing.

Provides functionality to manage and sign transactions for a multisig account.

property multisig : algosdk.transaction.Multisig

Get the underlying algosdk.transaction.Multisig object instance.

property params : MultisigMetadata

Get the parameters for the multisig account.

property signing*accounts *: list[ SigningAccount]_

Get the list of accounts that are present to sign.

property address : str

Get the address of the multisig account.

property signer : algosdk.atomic_transaction_composer.TransactionSigner

Get the transaction signer for this multisig account.

sign(transaction: algosdk.transaction.Transaction) → algosdk.transaction.MultisigTransaction

Sign the given transaction with all present signers.

class algokit_utils.models.account.LogicSigAccount(program: bytes, args: list[bytes] | None)

Account wrapper that supports logic sig signing.

Provides functionality to manage and sign transactions for a logic sig account.

property lsig : algosdk.transaction.LogicSigAccount

Get the underlying algosdk.transaction.LogicSigAccount object instance.

property address : str

Get the address of the logic sig account.

If the LogicSig is delegated to another account, this will return the address of that account. If the LogicSig is not delegated to another account, this will return an escrow address that is the hash of the LogicSig’s program code.

property signer : algosdk.atomic_transaction_composer.LogicSigTransactionSigner

Get the transaction signer for this multisig account.