dart_algorand library

Dart Algorand SDK library

Classes

AlgoAccount
AlgodClient
AssetConfigTxn
Represents a transaction for asset creation, reconfiguration, or destruction.
AssetFreezeTxn
Represents a transaction for freezing or unfreezing an account's asset holdings. Must be issued by the asset's freeze manager.
AssetTransferTxn
Represents a transaction for asset transfer. [...]
KeyregTxn
Represents a key registration transaction
KmdClient
LogicSig
Represents a logic signature
LogicSigTransaction
Represents a logic signed transaction
Mappable
Multisig
Represents a multisig account and signatures.
MultisigSubsig
MultisigTransaction
Represents a signed transaction.
ParsedUrl
PaymentTxn
Represents a payment transaction.
SignedTransaction
Represents a signed transaction.
SignedTransactionBase
Transaction
Superclass for various transaction types.
TxGroup
Wallet
Represents a wallet.

Constants

ADDRESS_LEN → const int
58
ASSET_TRANSFER_TXN → const String
indicates an asset transfer transaction
'axfer'
ASSETCONFIG_TXN → const String
indicates an asset configuration transaction
'acfg'
ASSETFREEZE_TXN → const String
indicates an asset freeze transaction
'afrz'
BID_PREFIX → const String
bid prefix when signing
'aB'
CHECK_SUM_LEN_BYTES → const int
4
KEY_LEN_BYTES → const int
32
KEYREG_TXN → const String
indicates a key registration transaction
'keyreg'
LEASE_LENGTH → const int
length of leases
32
LOGIC_PREFIX → const String
program (logic) prefix when signing
'Program'
LOGIC_SIG_MAX_COST → const int
max execution cost of a teal program
20000
LOGIC_SIG_MAX_SIZE → const int
max size of a teal program and its arguments in bytes
1000
MAX_ASSET_DECIMALS → const int
int: maximum value for decimals in assets
19
METADATA_LENGTH → const int
length of asset metadata
32
MIN_TXN_FEE → const int
minimum transaction fee
1000
MNEMONIC_LEN → const int
25
MSIG_ADDR_PREFIX → const String
prefix for multisig addresses
'MultisigAddr'
MULTISIG_ACCOUNT_LIMIT → const int
maximum number of addresses in a multisig account
255
NOTE_FIELD_TYPE_BID → const String
indicates a signed bid in NoteField
'b'
PAYMENT_TXN → const String
indicates a payment transaction
'pay'
TGID_PREFIX → const String
transaction group prefix when computing the group ID
'TG'
TX_GROUP_LIMIT → const int
maximum number of transaction in a transaction group
16
TXID_PREFIX → const String
transaction prefix when signing
'TX'

Properties

eq Function
read / write

Functions

address_from_private_key(String private_key) String
Return the address for the private key.
assign_group_id({List<Transaction> txns, String address}) List<Transaction>
Assign group id to a given list of unsigned transactions txns address is optional sender address specifying which transaction return Returns list of unsigned transactions with group property set
calculate_group_id(List<Transaction> txns) Uint8List
Calculate group id for a given list of unsigned transactions txns [...]
checksum(Uint8List data) Uint8List
decode_address(String a) Uint8List
encode_address(Uint8List addr_bytes) String
Encode a byte address into a string composed of the encoded bytes and the checksum.
from_key(Uint8List key) String
Return the mnemonic for the key.
from_master_derivation_key(String key) String
Return the mnemonic for the master derivation key.
from_private_key(String key) String
Return the mnemonic for the private key in base64.
generate_account() AlgoAccount
Generate an account.
idxHelper(int idx) int
is_valid_address(String addr) bool
Check if the string address is a valid Algorand address.
mnemonicChecksum(Uint8List data) String
Compute the mnemonic checksum.
msgpack_decode(String enc) → dynamic
msgpack_encode(dynamic obj) String
parseUrl(String url) ParsedUrl
to_key(String mnemonic) Uint8List
Give the corresponding key for the mnemonic.
to_master_derivation_key(String mnemonic) String
Return the master derivation key for the mnemonic.
to_private_key(String mnemonic) String
Return the private key for the mnemonic.
to_public_key(String mnemonic) String
Return the public key for the mnemonic.
undo_padding(String a) String

Exceptions / Errors

BadTxnSenderError
ClientError
DuplicateSigMismatchError
EmptyAddressError
InvalidProgram
InvalidSecretKeyError
InvalidThresholdError
MergeKeysMismatchError
MultisigAccountSizeError
OutOfRangeDecimalsError
TransactionGroupSizeError
UnknownMsigVersionError
WordNotInList
WrongChecksumError
WrongKeyBytesLengthError
WrongKeyLengthError
WrongLeaseLengthError
WrongMetadataLengthError
WrongMnemonicLengthError