githubEdit

Setting Up Your Environment

Environment configuration instructions to get started developing on Secret Network.

Secret Contracts are written using the CosmWasm frameworkarrow-up-right. CosmWasm contracts are written in Rust, which is later compiled to WebAssembly (or WASM for short). To write our first Secret Contract, we need to set up a development environment with all of the tools required so that you can upload, instantiate, and execute your smart contracts.

circle-info

For a step-by-step Secret Network environment configuration video tutorial, follow along herearrow-up-right πŸŽ₯. Otherwise, continue reading!

Install Requirements

To follow along with the guide, we will be using git, make, rust, and docker.

sudo apt-get install git make

Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Add WASM build target

rustup target add wasm32-unknown-unknown
circle-exclamation

Install Cargo Generate

Cargo generate is the tool you'll use to create a smart contract project. Learn more about cargo-generate here.arrow-up-right

cargo install cargo-generate --features vendored-openssl

Install Docker

Dockerarrow-up-right is an open platform for developing, shipping, and running applications.

Install SecretCLI

SecretCLI is a command-line tool that lets us interact with the Secret Network blockchain. It is used to send and query data as well as manage user keys and wallets.

For a more detailed and in-depth guide on SecretCLI installation and usage, check out the documentation herearrow-up-right.

Now it's time to learn how to compile and deploy your first smart contract πŸŽ‰

Last updated

Was this helpful?