Skip to main content

Cardano Contracts Library

Reference contracts from across Cardano, indexed by use case.

Aggregated from
CF monitoringawesome-aikenMeshJS
+1 more source40 contracts
  • Anonymous data

    via CF monitoring

    Commit data on-chain under an identifier derived from a wallet and a secret nonce, then prove ownership later by revealing the nonce.

    On-chain
    Aiken
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • Atomic transaction

    via CF monitoring

    Spend from a script and mint a token in one transaction to show how Cardano transactions succeed or fail as a single unit.

    On-chain
    Aiken
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • Auction

    via CF monitoring

    Run an on-chain English auction where bids are locked in the contract, outbid bidders reclaim their funds, and the highest bid settles when the deadline passes.

    On-chain
    AikenScalus
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • Bet

    via CF monitoring

    Let two players stake an equal amount and have a restricted oracle announce the winner, who then claims the whole pot.

    On-chain
    Aiken
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • Constant product AMM

    via CF monitoring

    A written specification for an automated market maker that prices swaps with the constant product formula and lets anyone provide liquidity.

    Reference
  • Content ownership

    via MeshJS

    A registry where users create and own content.

    On-chain
    Aiken
    Off-chain
    MeshJS
  • Crowdfund

    via CF monitoring

    Collect donations toward a funding goal where the beneficiary withdraws only if the goal is met by the deadline, and contributors otherwise reclaim their funds.

    On-chain
    Aiken
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • Decentralized identity

    via CF monitoring

    Manage self-sovereign identities where an address controls ownership through signatures and can authorize time-limited delegates.

    On-chain
    Aiken
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • Editable NFT

    via CF monitoring

    A written specification for an NFT whose owner can update its data, transfer it, and permanently seal it against further edits.

    Reference
  • ENCOINS

    via awesome-aiken

    An NFT-based private transactions protocol.

    On-chain
    Aiken
  • Escrow

    via CF monitoring

    Hold assets from two parties until both sign off, then complete or cancel the exchange.

    On-chain
    Aiken
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • Factory

    via CF monitoring

    Deterministically create and track many product contracts from a single factory instance using a marker NFT and on-chain registry.

    On-chain
    Aiken
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • Giftcard

    via MeshJS

    Lock assets into a card that anyone can redeem.

    On-chain
    Aiken
    Off-chain
    MeshJS
  • Hello World

    via MeshJS

    Lock and unlock assets, a hands-on intro to validation and transaction building.

    On-chain
    Aiken
    Off-chain
    MeshJS
  • HTLC

    via CF monitoring

    Lock funds behind a secret and an expiry so anyone can claim them by guessing the secret before the deadline, after which the owner reclaims them.

    On-chain
    Aiken
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • Jpg Store

    via awesome-aiken

    An NFT marketplace.

    On-chain
    Aiken
  • Lottery

    via CF monitoring

    Run a fair two-player lottery using a commit-reveal-punish protocol that needs no external randomness or oracle.

    On-chain
    Aiken
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • Marketplace

    via MeshJS

    Buy and sell native assets such as NFTs.

    On-chain
    Aiken
    Off-chain
    MeshJS
  • Minswap Stableswap

    via awesome-aiken

    A stableswap exchange for price-pegged assets.

    On-chain
    Aiken
  • Minswap V2

    via awesome-aiken

    An automated market maker decentralized exchange.

    On-chain
    Aiken
  • Nebula

    via awesome-aiken

    An NFT marketplace contract with a chain indexer and event listener for individual projects.

    On-chain
    Aiken
  • NFT minting machine

    via MeshJS

    Mint NFTs with an automatically incremented index.

    On-chain
    Aiken
    Off-chain
    MeshJS
  • Payment splitter

    via CF monitoring

    Distribute locked funds equally among a fixed list of known payees.

    On-chain
    AikenScalus
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • Payment subscription

    via Anastasia Labs

    Automated recurring payments between subscribers and merchants.

    On-chain
    Aiken
    Off-chain
    Evolution
  • Price bet

    via CF monitoring

    Let two players bet on whether an oracle exchange rate reaches a target before a deadline, with the pot going to the winning side.

    On-chain
    Aiken
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • Projected NFT Whirlpool

    via awesome-aiken

    A protocol that lets NFTs from other ecosystems be used in games while keeping custody.

    On-chain
    Aiken
  • Royalties

    via MeshJS

    Enforce creator royalty payments on NFT sales using the CIP-102 royalty datum standard.

    On-chain
    Aiken
    Off-chain
    MeshJS
  • Seedelf

    via awesome-aiken

    A stealth wallet that hides the recipient of a payment.

    On-chain
    Aiken
  • Simple transfer

    via CF monitoring

    Deposit assets at a script and name a receiver who can later withdraw them.

    On-chain
    Aiken
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • Simple wallet

    via CF monitoring

    An on-chain ADA wallet where the owner creates payment intents, executes them to pay recipients, and can withdraw the full balance.

    On-chain
    Aiken
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • Storage

    via CF monitoring

    Anchor SHA-256 commitments of off-chain data on-chain so anyone can re-hash the data and verify its integrity and existence.

    On-chain
    Aiken
    Off-chain
    BlazeCCL JavaEvolutionMeshJSPyCardano
  • SundaeSwap V3

    via awesome-aiken

    An automated market maker decentralized exchange.

    On-chain
    Aiken
  • SundaeSwap Yield Farming v2

    via awesome-aiken

    Yield farming reward-distribution contracts.

    On-chain
    Aiken
  • Swap

    via MeshJS

    Exchange assets between two parties.

    On-chain
    Aiken
    Off-chain
    MeshJS
  • Token transfer

    via CF monitoring

    Lock a specific native asset that only a designated receiver can withdraw by signing the spending transaction.

    On-chain
    Aiken
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • Upgradable multisig

    via Anastasia Labs

    Collective fund management requiring multiple approvals.

    On-chain
    Aiken
    Off-chain
    Evolution
  • Upgradable proxy

    via CF monitoring

    Point a stable proxy address at a logic script hash stored in its datum, so the logic version can be swapped by updating the datum.

    On-chain
    Aiken
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • Vault

    via CF monitoring

    Protect funds with time-delayed withdrawals and a separate recovery key that can cancel a pending withdrawal during the wait period.

    On-chain
    Aiken
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • Vesting

    via CF monitoring

    Lock funds for a period and let the beneficiary withdraw them once the lockup elapses.

    On-chain
    Aiken
    Off-chain
    CCL JavaEvolutionMeshJSPyCardano
  • zkLogin

    via eryxcoop

    Authenticate with an existing OpenID account and control funds through zero-knowledge proofs verified on-chain, without seed phrases.

    On-chain
    Aiken