Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Latest commit

 

History

History
38 lines (22 loc) · 1.37 KB

README.md

File metadata and controls

38 lines (22 loc) · 1.37 KB

forc-client

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.

Examples

While using forc-deploy or forc-run to interact with a node you need to pass the endpoints with --url:

Localhost

forc deploy --url localhost:4000 --unsigned

Testnet

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.

License

Apache License, Version 2.0, (LICENSE or https://www.apache.org/licenses/LICENSE-2.0)