Example Repositories
Working code examples make it faster to see patterns in action than reading prose. These repositories are official samples for common OXN dApp patterns.
Getting started templates
Hardhat starter — a minimal Hardhat project preconfigured for OXN. Deploys a Hello World ERC-20 and demonstrates encrypted calls. Fork this when you want to skip the initial setup.
Foundry starter — the Foundry equivalent. Uses the "Foundry deploy + JS interact" hybrid pattern for confidentiality.
Sample dApps
Confidential ERC-20 — the Building a Confidential ERC-20 contract with full Hardhat tests.
Sealed-Bid Auction — the Building a Sealed-Bid Auction contract with tests and a minimal frontend.
Private Voting — the Building a Private Voting dApp contract.
Full-stack dApp — a Next.js + Solidity example that combines an OXN backend contract with a wallet-connected frontend.
Backend and infrastructure
Go indexer example — a service that indexes OXN transactions into Postgres, treating encrypted calldata as opaque bytes.
Rust backend example — a REST service that signs OXN transactions on behalf of authenticated users.
Repository status
Locations for the above repositories will be published as they become available. Check the OXN GitHub organization for links.
Contributing an example
Have a well-tested pattern you'd like to share? Contact the team via Support. Community-contributed examples that meet a quality bar get listed here.
Next steps
- Migrate from Ethereum — if you have an existing dApp
- Deploy Your First Contract — if you're starting fresh