# Deploying Fuel smart contract **Published by:** [Vitamine](https://paragraph.com/@vitamine777/) **Published on:** 2023-01-25 **URL:** https://paragraph.com/@vitamine777/deploying-fuel-smart-contract ## Content First, let's prepare the working environment. We will use Gitpod. You can read about getting started with it here.Let's start setting up the server. Run each command separatelysudo apt update && sudo apt upgrade -y sudo apt install curl git -y curl — proto ‘=https’ — tlsv1.2 -sSf https://sh.rustup.rs | shType 1 and press Entersource "$HOME/.cargo/env" curl — proto ‘=https’ — tlsv1.2 -sSf https://fuellabs.github.io/fuelup/fuelup-init.sh | sh export PATH="${HOME}/.fuelup/bin:${PATH}" mkdir fuel-project cd fuel-project forc new counter-contractThen go here and copy the code. Open file main.sw and replace code.Continue.fuelup toolchain new test_toolchain fuelup component add forc@0.26.0 fuelup component add forc-wallet cd counter-contract forc build forc-wallet initCreate a password, save the seed phrase and press Enter.forc-wallet newEnter our password and press Enter. We get the wallet address. Request test tokens here (the faucet is very laggy, try it until you can request tokens).forc deploy --url https://node-beta-1.fuel.network/graphql --gas-price 1Copy our wallet adress (ctrl+shift+c) and paste (right-click), click Enter. Now is a very important step. Click on the button indicated in the pictureA new terminal has been opened, we continue our work therecd fuel-project cd counter-contract export PATH="${HOME}/.fuelup/bin:${PATH}" forc wallet sign "Tx id to sign from first window" 0Ctrl+Shift+C for copy. Paste command in second window.Copy the signature and paste it into the first windowCongratulations! You deployed the smart contract. Copy our Tx id, add 0x to the beginning and look at the contract here. ## Publication Information - [Vitamine](https://paragraph.com/@vitamine777/): Publication homepage - [All Posts](https://paragraph.com/@vitamine777/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@vitamine777): Subscribe to updates - [Twitter](https://twitter.com/nlabplay): Follow on Twitter