Forc plugin for interacting with a Fuel node.
This plugin provides the forc deploy
and forc run
commands.
Note: You will require the plugin forc-wallet
in order to sign your transactions.
While using forc-deploy
or forc-run
to interact with a node you need to pass the endpoints with --url
:
forc deploy --url localhost:4000 --unsigned
forc deploy --url https://node-beta-1.fuel.network/graphql:443
Since deploying and running projects on the testnet cost gas, you will need coins to pay for them. You can get some using the testnet faucet.
Also the default value of the "gas price" parameter is 0 for both forc-deploy
and forc-run
. Without changing it you will get an error complaining about gas price being too low. While using testnet you can pass --gas-price 1
to overcome this issue. So a complete command for deploying to the testnet would look like:
forc deploy --url https://node-beta-1.fuel.network/graphql:443 --gas-price 1
For more information and usage examples, please refer to the forc-client section in the Sway book.
Apache License, Version 2.0, (LICENSE or https://www.apache.org/licenses/LICENSE-2.0)