# Quickstart (Wasm)
Set up your development environment to interact with CosmWasm smart contracts on the Nibiru Chain. Learn to install Rust, set up the Wasm compiler, optimize contracts, and install the Nibiru CLI. Connect to the Nibiru testnet for deployment and testing.
# Setup Environement
To interact with a CosmWasm smart contract, you'll need to have Rust installed on your computer. If you haven't installed it yet, you can find the installation instructions on the Rust website (opens new window) or use the recommended installation method below.
Assuming your rust installation is complete, you will require the Wasm rust compiler in order to build Wasm binaries from your smart contracts.
Finally, gas fees for deploying smart contracts onto Nibiru are dependant on the size of your binaries. It is highly recommended to optimize and minimize your contracts by using CosmWasm Rust Optimizer (opens new window). This allows you to implement complex smart contracts without exceeding a size limit. To install, you first need docker (opens new window).
Then you should be able to optimize your contracts using:
# Installing Nibiru CLI
For smart contract management, you have the option to use niibjs
or the nibid
. For this guide, we will be utilizing nibid
.
For installation, you can use the curl
command below. For other installations methode please
refer to Nibiru Binary Installation Guide.
# Setup Nibiru Testnet
Nibiru maintains public testnets to function as beta-testing environments as well as testing playground for developers to test their dApp and Smart Contracts.
Documentation on connecting Nibiru's networks can be found here. For the purpose of this guide, to connect to Nibur's most stable network, testnet-1, run the following: