Writing ABI Compliant Smart Contracts PyTEAL
summary
Explains Algorand ABI support in PyTeal and shows a working algobank demo with three methods (deposit, get_balance, withdraw) that compiles to TEAL, emits an ABI JSON and executes CLI calls successfully in a local sandbox. Demonstrates atomic groups, inner transactions for withdrawals, decoded return values from logs, and the router that maps method selectors; shows reference types (account/asset/app), transaction types, tuples (limit 5) and dynamic arrays, and that the router can produce ABI JSON used by SDK/goal to call methods.
AI-written summary · about
chapters (10)
- 0:00Introduction to ABI
- 3:33ABI interface structure
- 6:54Data types and coding
- 12:24Reference types
- 15:33Transaction types and returns
- 20:24Routing application calls
- 25:58Compilation and documentation
- 28:46Calling smart contracts
- 31:28Algobank demo
- 53:29Tools and wrap-up
related talks
49mAlgorand Smart Contract Architecture
23mGradual Verification for Smart Contracts
09mHow to Build On-chain AI Agents
51mBlockchain and smart contracts (...)
15mCompositional Verification of Smart Contracts Through Communication Abstraction
38mThe Duality of Smart Contracts and Electronic Rights
54mMy Little Token (Part 1)
21mSmart contracts and DApps for JS developers
