Writing your first smart contract in Cadence
summary
Cadence on Flow uses resource-oriented programming with linear-type resources that live in user accounts (not a central ledger), so assets can’t be copied and the runtime errors if a created NFT is not explicitly saved or destroyed — the demo shows creating an NFT in the Playground emulator, hitting a “loss of resource” error, then fixing it by account.save. Transactions are atomic and can run arbitrary code; access control relies on capability security. The language is currently interpreted; a compiler is planned.
AI-written summary · about
chapters (5)
- 0:00Start
- 3:46Basics Smart Contracts
- 7:18Data Structures vs. Scarce Assets
- 17:33A Glimpse of Cadence
- 27:28Blockchain Programming Model: Transactions
related talks
17mFuture of Consumer Crypto with AI
26mTurning Words into Killer Apps Defi Actions
42mLive coding session: Program an NFT smart contract in 30min w/ SmartPy
27mFireside Chat
31mBuild your First AI Agent With Flow Foundation
54mMy Little Token (Part 1)
38mThe Duality of Smart Contracts and Electronic Rights
35mCreating your First Smart Contract on Hyperledger Fabric!
