Loading...
Loading...
AlgoKit Utils library for interacting with the Algorand blockchain from TypeScript or Python applications. Use when connecting to Algorand networks (LocalNet, TestNet, MainNet), sending payments or transferring assets, creating and managing accounts, deploying or interacting with smart contracts from client code, or composing transaction groups. NOT for writing smart contract code (use build-smart-contracts skill). Strong triggers include "How do I connect to Algorand?", "send a payment transaction", "create an account", "deploy my contract", "get an AlgorandClient", "AlgorandClient.fromEnvironment".
npx skill4agent add algorand-devrel/algorand-agent-skills use-algokit-utilsAlgorandClientalgorand.send.*algorand.newGroup()import { AlgorandClient } from '@algorandfoundation/algokit-utils'
const algorand = AlgorandClient.fromEnvironment()
// Or: AlgorandClient.defaultLocalNet()
// Or: AlgorandClient.testNet()
// Or: AlgorandClient.mainNet()from algokit_utils import AlgorandClient
algorand = AlgorandClient.from_environment()
# Or: AlgorandClient.default_localnet()
# Or: AlgorandClient.testnet()
# Or: AlgorandClient.mainnet()const account = await algorand.account.fromEnvironment('DEPLOYER')account = algorand.account.from_environment("DEPLOYER")await algorand.send.payment({
sender: account.addr,
receiver: 'RECEIVERADDRESS',
amount: algo(1),
})algorand.send.payment(PaymentParams(
sender=account.address,
receiver="RECEIVERADDRESS",
amount=AlgoAmount(algo=1),
))algorand.accountalgo(1)| Scenario | Approach |
|---|---|
| LocalNet development | |
| TestNet/MainNet | |
| Custom node | |
| Deploy contract | Use typed app client factory (see app-client docs) |
| Transaction groups | |
references/typescript/references/python/