CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
🌙☀️
Log inStart free
Home/Templates/Blockchain & Web3

⛓️ Blockchain & Web3 · C4 Architecture · Pro

NFT Marketplace

How an NFT marketplace works: listings signed off-chain, metadata on IPFS, and sales settled by a marketplace smart contract.

More Blockchain & Web3 templates

C4 Architecture diagrams are part of Pro. Anyone can view this one; generating and editing it needs Pro.

Drawing diagram…

What this diagram shows

  • Listings are signed messages, so listing costs no gas
  • Artwork and metadata live on IPFS, not the marketplace's servers
  • The smart contract pays the seller and creator royalty in one step

Prompt used

NFT marketplace: users connect wallets (MetaMask) to a web app. Creators mint NFTs through a minting contract with metadata and images pinned on IPFS. Sellers sign listings off-chain, stored in the marketplace API. Buyers call the marketplace smart contract, which checks the signature, transfers the NFT, pays the seller and the creator royalty. An indexer reads blockchain events into PostgreSQL for search.

Mermaid code
C4Container
title NFT Marketplace
Person(user, "Collector / Creator", "Buys, sells, mints")
System_Boundary(mp, "Marketplace") {
  Container(web, "Web App", "Next.js", "Browse, list, buy")
  Container(api, "Marketplace API", "Node.js", "Signed listings, search")
  Container(idx, "Chain Indexer", "Go", "Reads contract events")
  ContainerDb(db, "Market DB", "PostgreSQL", "Listings, sales, collections")
}
System_Ext(wallet, "Wallet", "MetaMask")
System_Ext(chain, "Ethereum", "Marketplace and NFT contracts")
System_Ext(ipfs, "IPFS", "Images and metadata")
Rel(user, web, "Uses")
Rel(web, wallet, "Signs listings and transactions")
Rel(web, api, "Listings and search")
Rel(wallet, chain, "Sends transactions")
Rel(web, ipfs, "Uploads artwork")
Rel(idx, chain, "Reads events")
Rel(idx, db, "Writes sales")
Rel(api, db, "Reads/writes")

Related templates

C4 ArchitectureProBlockchain & Web3

Crypto Exchange Architecture

The main parts of a centralised crypto exchange: a matching engine, wallets split between hot and cold storage, deposits and withdrawals, and compliance checks.

SequenceBlockchain & Web3

Crypto Withdrawal Sequence

How an exchange processes a crypto withdrawal safely: balance hold, 2FA, risk and address screening, signing, broadcast and confirmations.

FlowchartBlockchain & Web3

Smart Contract Upgrade Process

How a team safely upgrades a smart contract behind a proxy: audit, testnet rehearsal, multi-signature approval and a timelock before the change goes live.

State MachineBlockchain & Web3

Blockchain Transaction States

The states a blockchain transaction goes through from signing to final confirmation, including replacement and dropped transactions.

NetworkBlockchain & Web3

Hot and Cold Wallet Custody

How a custodian separates internet-connected hot wallets from offline cold storage, with signing hardware and an air-gapped transfer process.

DeploymentProBlockchain & Web3

Web3 dApp Deployment

Where a decentralised app's parts run: frontend on IPFS, contracts on a layer-2 chain, and supporting services like RPC providers and an indexer.