Skip to content

Commit

Permalink
markdown lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kayagokalp committed May 29, 2024
1 parent a54548b commit 07910ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/book/src/forc/plugins/forc_client/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
Forc plugin for interacting with a Fuel node. Since transactions are going to require some gas, you need to sign them with an account that has enough tokens to pay for them.

We offer multiple ways to sign the transaction:

1. Sign the transaction via your local wallet using forc-client which integrates with our CLI wallet, forc-wallet.
2. Use the default signer to deploy to a local node
3. Use forc-wallet to manually sign transactions, and copy the signed transaction back to forc-client.

The easiest and recommended way to interact with deployed networks, such as our testnets is the option 1, using forc-client to sign your transactions which reads your default forc-wallet vault. For interacting with local node, we recommend using the second option, which leads forc-client to sign transactions with the a private key that comes pre-funded in local environments.

## Option 1: Sign transactions via forc-client using your local forc-wallet vault

If you used forc-wallet before, a vault which securely holds your private key is created and written to your file-system in a password encrypted format. forc-client is compatible with forc-wallet such that it can read that vault by asking you your password and use your account to sign transactions.

Example:
Expand Down Expand Up @@ -48,6 +50,7 @@ As it can be seen from the example, forc-client asks for your password to decryp
If you are not interacting with a deployed network, such as testnets, your local fuel-core environment can be structured such that it funds an account by default. Using `--default-signer` flag with forc-client binaries (run, deploy) will instruct forc-client to sign transactions with this pre-funded account. Which makes it a useful command while working against a local node.

Example:

```console
> forc deploy --default-signer

Expand Down

0 comments on commit 07910ec

Please sign in to comment.