algokit_utils.models.account
Attributes
Section titled “Attributes”DISPENSER_ACCOUNT_NAME |
|---|
Classes
Section titled “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
Section titled “Module Contents”DISPENSER_ACCOUNT_NAME = ‘DISPENSER’
Section titled “DISPENSER_ACCOUNT_NAME = ‘DISPENSER’”class TransactionSignerAccount
Section titled “class TransactionSignerAccount”A basic transaction signer account.
address : str
Section titled “address : str”signer : algosdk.atomic_transaction_composer.TransactionSigner
Section titled “signer : algosdk.atomic_transaction_composer.TransactionSigner”class SigningAccount
Section titled “class 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
Section titled “private_key : str”Base64 encoded private key
address : str = ”
Section titled “address : str = ””Address for this account
property public_key : bytes
Section titled “property public_key : bytes”The public key for this account.
- Returns: The public key as bytes
property signer : algosdk.atomic_transaction_composer.AccountTransactionSigner
Section titled “property signer : algosdk.atomic_transaction_composer.AccountTransactionSigner”Get an AccountTransactionSigner for this account.
- Returns: A transaction signer for this account
static new_account() → SigningAccount
Section titled “static new_account() → SigningAccount”Create a new random account.
- Returns: A new Account instance
class MultisigMetadata
Section titled “class MultisigMetadata”Metadata for a multisig account.
Contains the version, threshold and addresses for a multisig account.
version : int
Section titled “version : int”threshold : int
Section titled “threshold : int”addresses : list[str]
Section titled “addresses : list[str]”class MultiSigAccount
Section titled “class MultiSigAccount”Account wrapper that supports partial or full multisig signing.
Provides functionality to manage and sign transactions for a multisig account.
- Parameters:
- multisig_params – The parameters for the multisig account
- signing_accounts – The list of accounts that can sign
property multisig : algosdk.transaction.Multisig
Section titled “property multisig : algosdk.transaction.Multisig”Get the underlying algosdk.transaction.Multisig object instance.
- Returns: The algosdk.transaction.Multisig object instance
property params : MultisigMetadata
Section titled “property params : MultisigMetadata”Get the parameters for the multisig account.
- Returns: The multisig account parameters
property signing_accounts : list[SigningAccount]
Section titled “property signing_accounts : list[SigningAccount]”Get the list of accounts that are present to sign.
- Returns: The list of signing accounts
property address : str
Section titled “property address : str”Get the address of the multisig account.
- Returns: The multisig account address
property signer : algosdk.atomic_transaction_composer.TransactionSigner
Section titled “property signer : algosdk.atomic_transaction_composer.TransactionSigner”Get the transaction signer for this multisig account.
- Returns: The multisig transaction signer
sign(transaction: algosdk.transaction.Transaction) → algosdk.transaction.MultisigTransaction
Section titled “sign(transaction: algosdk.transaction.Transaction) → algosdk.transaction.MultisigTransaction”Sign the given transaction with all present signers.
- Parameters: transaction – Either a transaction object or a raw, partially signed transaction
- Returns: The transaction signed by the present signers
class LogicSigAccount
Section titled “class LogicSigAccount”Account wrapper that supports logic sig signing.
Provides functionality to manage and sign transactions for a logic sig account.
property lsig : algosdk.transaction.LogicSigAccount
Section titled “property lsig : algosdk.transaction.LogicSigAccount”Get the underlying algosdk.transaction.LogicSigAccount object instance.
- Returns: The algosdk.transaction.LogicSigAccount object instance
property address : str
Section titled “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.
- Returns: The logic sig account address
property signer : algosdk.atomic_transaction_composer.LogicSigTransactionSigner
Section titled “property signer : algosdk.atomic_transaction_composer.LogicSigTransactionSigner”Get the transaction signer for this multisig account.
- Returns: The multisig transaction signer