Community Tutorials

Secret Tutorials

References to help build Secret Networks dApps and Secret Contracts are found below, beginning with reference tutorials and code repositories.
To learn more, please visit Secret Contracts.
To follow a guided walk-through on setting up your development environment, developing a first basic Secret Contract (Simple Secret Counter) and deploying it, please visit our Quickstart documentation page.

Tutorial Developing Your First Secret Contract

Refer to this tutorial from darwinzer0 about developing a Secret Exploding Message app.
A recommended walkthrough, with practical insights on Secret Contract functions, messages & storage.

Simple Secret Voting App

Use this link to see a sample voting contract and a line by line description of everything you need to know.
A dedicated walkthrough for this app is made in How To Build Secret Apps: An Evolving Development Guide

Secret Contracts Guide

This repository can be used to master Secret Contract development.
In this repository you'll find information on:
  • Setting up a local Secret Network developer testnet
  • Learning Secret Contract development basics and shortcuts
  • Build and deploy Secret Contracts of varying complexity with UIs
A key aspect addresses how to build a frontend using React.

Secret Sealed Bid Auction

Use this link for a sealed-bid (secret) auction contract that makes use of SNIP-20 and a walkthrough of the contract.
For an even more advanced version of this stunning Secret Sealed Bid Auction app, you can refer to its enhanced Secret Auction Factory put in production.
The VueJS UI code is available here.

Figment Learning Materials

Visit this link for all tutorials about Secret Network by our partner
Make sure you go through the Secret Pathway Tutorials 1-5 covering:
  1. 1.
    Connect to a Secret node using DataHub
  2. 2.
    Create your first Secret account
  3. 3.
    Query the Secret Network
  4. 4.
    Submit your first Secret transaction
  5. 5.
    Write & deploy your first Secret smart contract
Figment's YouTube tutorials playlist can be found here.

SecretJS Templates

Refer to the reference SecretJS Templates provided by SCRT Labs to learn about:
  • Connecting to Secret Network
  • Creating account using SecretJS
  • Query Secret Network
  • Submitting transactions
  • Using contracts
  • Wallets
  • SNIP-20 tokens
  • Consuming websocket contract events

Secret Ethereum Bridge

The source code of the Harmony-based Ethereum bridge frontend is available here.
If you are interested to know how to programmatically use the bridge, you can look at the manual swap section of the Ethereum Bridge doc.

References for Secret Contracts

SNIP-20 Contracts

To master the SNIP-20 contract specifications, you can refer to these two key parts:


To master the SNIP-721 contract specifications for Non-Fungible Tokens (NFT), you can refer to these two key parts:

Secret Toolkit

Secret Contract Development Toolkit is a collection of Rust packages that contain common tools used in development of Secret Contracts running on the Secret Network.