Deploy update
forc deploy --node-url beta-3.fuel.network/graphql --gas-price 1 --random-salt
https://fuelbook.fuel.network/master/index.html
Bienvenida
Bienvenida al curso de Sway
Sway basics
Your first Sway project
Installations
Your first Sway project
Deploying Your Contract
Types and Standard Library
Advanced Types
Sway Standard Library
Writing your contract
Marketplace Contract Setup
Listing and Getting an Item
Buying an Item
Owner-only functions
Get item
Deploying your contract
Deploying your contract
Frontend
Intro to TypeScript SDK
Basic frontend with React
Additional resources
You don't have access to this class
Keep learning! Join and start boosting your career
To deploy your Sway smart contract on the Fuel blockchain, it is crucial to have the necessary and well-configured tools. As you follow these steps, you will learn how to install Forc Wallet, get test tokens to pay for gas, and finally, deploy your contract live. Preparation is key to success in the world of emerging technologies.
Verify the version of FuelUp installed:
It is essential to verify that you already own FuelUp, which will allow the installation of Forc Wallet to go smoothly. To do this, run the following command in your terminal:
forc-wallet --version
This will display the version of Forc Wallet, ensuring that FuelUp is correctly configured.
2. Add Forc Wallet to FuelUp:
Once you have verified the presence of FuelUp, integrate Forc Wallet to your custom tool with:
FuelUp component add forc-wallet
This step ensures that the wallet is ready to interact with blockchain transactions.
1. Initialize the wallet:
To create a new account, you need to initialize your wallet with the command:
forc-wallet init
2. Create a new account:
Generate a new and unique address for transactions with:
forc-wallet new
This address is vital, as it will be used to sign transactions, ensuring authorship and authenticity on the blockchain.
Check and build your contract:
Before deploying, verify that the contract is compiled without errors:
forc build
A green output will indicate that your contract has been successfully compiled.
2. Deploy the contract:
With everything in order, proceed to deploy with:
forc deploy --url [endpoint URL] --wallet [wallet address].
Make sure you have the wallet address ready to sign the transaction.
For any errors that may arise during this process, such as signature problems, incorrect use of commands, or the need to update software, do not hesitate to:
Handling errors gracefully and knowing how to use the right tools is a fundamental part of the blockchain development process. Follow the right steps, and you'll be well on your way to future projects.
Your enthusiasm and persistence are the key to success in this ever-evolving field - keep exploring and creating!
Contributions 5
Questions 1
Deploy update
forc deploy --node-url beta-3.fuel.network/graphql --gas-price 1 --random-salt
https://fuelbook.fuel.network/master/index.html
didnt let me deploy,so i updated to beta-3 and used the syntax used in latest sway counter example contract:
https://fuellabs.github.io/sway/latest
ran
fuelup self update
fuelup toolchain install beta-3
fuelup default beta-3
forc build
forc deploy --node-url beta-3.fuel.network/graphql --gas-price 1 --random-salt
but this code may change, so i suggest to follow the link for the latest documentation and examples
Me parece que Forc Wallet list cambio por forc-wallet accounts
contract 67b9f8161443848c7b81551821fde1c17769b31853da5e961cc671c9543c6667 deployed in block 0xdf8b884786962bd0f10cce7d1cf2947f12a2ecffb76c80b8ea09f73e42b829c2
aqui docs de las networks:
https://fuelbook.fuel.network/master/networks/networks.html
y hay varios example contracts:
https://fuellabs.github.io/sway/v0.33.1/book/examples/counter.html
and here:
https://fuelbook.fuel.network/master/for-developers/example-contracts.html
Want to see more contributions, questions and answers from the community?