AlgorandClient
The main entry point for interacting with Algorand networks.
pip install algokit-utilspoetry add algokit-utilsuv add algokit-utilsfrom algokit_utils import AlgoAmount, AlgorandClient, PaymentParams
# Connect to the network configured through environment variables,# or default LocalNet configuration if no environment variables are setalgorand = AlgorandClient.from_environment()
# Create and fund a test accountaccount = algorand.account.random()algorand.account.ensure_funded( account_to_fund=account, dispenser_account=algorand.account.localnet_dispenser(), min_spending_balance=AlgoAmount.from_algo(10),)
# Send a paymentresult = algorand.send.payment( PaymentParams( sender=account.address, receiver="RECEIVERADDRESS", amount=AlgoAmount.from_algo(1), ))
print("Transaction ID:", result.tx_id)This library follows the Guiding Principles of AlgoKit and is designed with the following principles:
AlgorandClient
The main entry point for interacting with Algorand networks.
Transaction Composer
Build and send atomic transaction groups with ease.
App Client
Deploy and interact with smart contracts.
Testing Utilities
Comprehensive testing support for LocalNet.