down-rightDevnet

Try out the developer testnet

Welcome! This walkthrough is quick. It only requires a minute of actual attention, while the rest is waiting. If you run into any issues, please check if it's one of the 10 common errors resolved in the FAQ section. You can also hop in our discordarrow-up-right and ask questions in the #devnet channel.

If you end up deploying your own custom contract, please send the github link to @lyroncarrow-up-right on TG! Also note, this is not an incentivized testnet.

Works on Mac, Linux, and Windows via WSL (see FAQ).

Deploy an encrypted contract

1. Install Rust

2. Install jq

For Mac. See instructions for your machine herearrow-up-right. Only step that isn't OS agnostic.

3. Install sfoundryup

4. Run sfoundryup

5. Clone repository

6. Deploy contract

Interact with an encrypted contract

1. Install Bun

2. Install node dependencies

3. Send transactions

FAQ

chevron-rightWhat if I'm on Windows?hashtag

We recommend using WSLarrow-up-right to run commands as if you were on a Linux machine. Run

Now restart your computer. After booting back up, you should be able to run the below command and follow the rest of the steps like normal

chevron-rightI'm stuck at 1108/1112 when running sfoundryup .hashtag

Some machines take up to an hour to do this step. If it takes longer, ask a question in our discord'sarrow-up-right #devnet channel.

chevron-rightI'm getting Command failed: cargo build --bins --release.hashtag

Means your machine doesn't have cargo. If you're on Linux, run

chevron-rightI'm getting jq (command not found).hashtag

Means step #2 didn't work. If you're on Linux, run

chevron-rightI'm getting Address not funded. Please check if your faucet transaction went...hashtag

Means your wallet has no testnet ETH. Please go to the faucetarrow-up-right, enter the address the script gave you, and wait for the green confirmation.

chevron-rightI'm getting Command 'brew' not found.hashtag

Means your machine doesn't have the Homebrewarrow-up-right package manager. Run

chevron-rightI'm getting linker 'cc' not found.hashtag

You can resolve by running

chevron-rightI'm getting command not found: sfoundryup .hashtag

If this comes up even after you complete step #3 successfully, restart your terminal. Should be able to run it after.

chevron-rightI'm getting info: aborting installation .hashtag

Means you aren't selecting an option for your Rust installation. Run the curl command again, and press Enter.

chevron-rightI'm getting Command: 'bun' not found.hashtag

You need to add bun to your PATH. You can either do this temporarily in your current terminal via the below command (you'll have to do it for every new window):

Or set it properly, by opening up your ~/.bashrc and adding

NOTE: This is a testnet with known decryption keys. Please don't put real information on it!

Last updated