Quick Start
Get up and running with AlgoKit Utils in 5 minutes.
Prerequisites
Section titled “Prerequisites”- Python 3.10+
- AlgoKit CLI installed
- LocalNet running (
algokit localnet start)
Installation
Section titled “Installation”pip install algokit-utils# orpoetry add algokit-utils# oruv add algokit-utilsYour First Transaction
Section titled “Your First Transaction”Create a file called hello_algorand.py:
from algokit_utils import AlgorandClient, AlgoAmount, PaymentParams
# 1. Connect to LocalNetalgorand = AlgorandClient.default_localnet()
# 2. Create a new random accountsender = algorand.account.random()print(f"Created account: {sender.addr}")
# 3. Fund the account from the LocalNet dispenseralgorand.account.ensure_funded(sender, algorand.account.localnet_dispenser(), min_spending_balance=AlgoAmount.from_algo(10))print("Funded account with 10 ALGO")
# 4. Check the balanceinfo = algorand.account.get_information(sender)print(f"Balance: {info.amount.algo} ALGO")
# 5. Create a second account and send a paymentreceiver = algorand.account.random()
result = algorand.send.payment( PaymentParams( sender=sender.addr, receiver=receiver.addr, amount=AlgoAmount.from_algo(1), ))
print(f"Payment sent! Transaction ID: {result.tx_id}")
# 6. Check receiver balancereceiver_info = algorand.account.get_information(receiver)print(f"Receiver balance: {receiver_info.amount.algo} ALGO")Run it:
python hello_algorand.pyWhat’s Next?
Section titled “What’s Next?”- AlgorandClient — Learn about the main entry point
- Account Management — Different ways to create and manage accounts
- Transaction Management — Build and send transactions
- App Client — Deploy and interact with smart contracts
- Examples — Browse 100+ runnable examples