Writing Smart Contracts
This section shows you how to write smart contracts in Rust and WebAssembly (Wasm).
|Getting Started with Rust||An introduction to using Rust with the Casper Platform|
|Writing Session Code||An introduction to writing session code|
|A Basic Smart Contract in Rust||An example of a smart contract built in Rust|
|A Basic Smart Contract in AssemblyScript||An example of a smart contract built in AssemblyScript|
Additionally, the following tutorials outline some aspects of writing smart contracts on the Casper Network.
|NFTs on Casper||Implementing the Casper NFT standard|
|Counter Contract Tutorial||A simple example contract that maintains a counter variable|
|Fungible Tokens on Casper||Implement the Casper Fungible Token standard|
|Key-Value Storage with Casper DSL||Design a simple contract to store a value and use the Casper DSL|
|Multi-Signatures and Key Recovery||Learn to sign transactions with multiple keys|
|Interacting with Runtime Return Values||Learning how to return a value using contract code|
|Safely Transfer Tokens to a Contract||How to handle tokens via a contract|
|Smart Contract Upgrades||Learn how to upgrade smart contracts|