Skip to content

AlgoKit Utils Python

Terminal window
pip install algokit-utils
from algokit_utils import AlgorandClient, AlgoAmount, PaymentParams
# Connect to LocalNet
algorand = AlgorandClient.from_environment()
# Create and fund a test account
account = 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 payment
result = algorand.send.payment(
PaymentParams(
sender=account.addr,
receiver="RECEIVERADDRESS",
amount=AlgoAmount.from_algo(1),
)
)
print("Transaction ID:", result.tx_id)

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.