Example Contracts
Here's a list of open-source smart contracts, complete with live demos and end-to-end source code.
| Contract | Description | Links |
|---|---|---|
| Hello World | A simple lock-and-unlock assets contract, providing a hands-on introduction to end-to-end smart contract validation and transaction building | [docs] [source] |
| Content Ownership | Create a content registry and users can create content that is stored in the registry | [docs] [source] |
| Escrow | Facilitates the secure exchange of assets between two parties by acting as a trusted intermediary that holds the assets until the conditions of the agreement are met | [docs] [source] |
| Giftcard | Allows users to create a transactions to lock assets into the smart contract, which can be redeemed by any user | [docs] [source] |
| Marketplace | Allows anyone to buy and sell native assets such as NFTs | [docs] [source] |
| NFT Minting Machine | Mint NFTs with an automatically incremented index, which increases by one for each newly minted NFT | [docs] [source] |
| Payment Splitter | Allows users to split incoming payments among a group of accounts | [docs] [source] |
| Swap | Facilitates the exchange of assets between two parties | [docs] [source] |
| Vesting | Allows users to lock tokens for a period of time and withdraw the funds after the lockup period | [docs] [source] |
| Upgradable Multi-Signature | Multi-signature contract designed for secure and collaborative management of funds on the Cardano blockchain. Allows multiple authorized signers to collectively authorize transactions, ensuring that funds can only be moved with the required approvals | [on-chain] [off-chain] |
| Payment Subscription | Designed to facilitate automated recurring payments between subscribers and merchants on the Cardano blockchain. This contract enables users to seamlessly set up, manage, and cancel their subscriptions directly from their wallets. It ensures secure and efficient transactions by automating the payment of subscription fees, updating service metadata, and handling cancellations, all within a decentralized framework | [on-chain] [off-chain] |