Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Minor edits to Setting up an account #1070

Merged
merged 5 commits into from
Jan 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,16 @@ For information on creating a Starknet wallet as an end user, see link:https://w

== Prerequisites

=== Ensure Starkli and Scarb are installed correctly

Ensure that the following commands show the version information for Starkli and Scarb:

* Starkli is installed correctly. Ensure that the following command shows the version information for Starkli:
+
[source, bash]
----
starkli --version
scarb --version
----
+
If this command fails, see xref:environment_setup.adoc[Setting up your environment].

If either command fails, see xref:environment_setup.adoc[Setting up your environment].

=== Download, install and set up Argent X or Braavos wallet

Install a Starknet wallet via Argent X or Braavos. For information on a specific wallet, including installation instructions, see that wallet’s site.
* A Starknet wallet is installed, either Argent X or Braavos. For information on a specific wallet, including installation instructions, see that wallet’s site.

== Creating an account
A smart wallet is composed of two parts:
Expand Down Expand Up @@ -100,7 +95,7 @@ Fetch account config from an already deployed account contract
----


The `fetch` command supports both Argent X and Braavos smart wallets. Make sure your wallet address is already deployed and input following command to create and save the account descriptor file:
The `fetch` command supports both Argent X and Braavos smart wallets. Make sure your wallet address is already deployed and enter the following command to create and save the account descriptor file:

[source,shell]
----
Expand All @@ -110,7 +105,7 @@ starkli account fetch <SMART_WALLET_ADDRESS> --output ~/.starkli-wallets/deploye
You can obtain access to a JSON-RPC endpoint in one of the following ways:

- Host your own node with Pathfinder, Juno, or Papyrus.
- Use a third-party JSON-RPC API provider like Infura, Alchemy, Chainstack, or Nethermind.
- Use a third-party JSON-RPC API provider. For information on providers, see xref:tools:api-services.adoc[Full nodes and API services].

The following command shows the details of the account descriptor:

Expand Down Expand Up @@ -146,9 +141,9 @@ If you are working with Braavos wallet, the type is defined as `braavos` and the
====

== Deploying an account
Once you have an account file, you can deploy the account contract with the starkli `account deploy` command.
Once you have an account file, you can deploy the account contract with the `starkli account deploy` command.

This command sends a `DEPLOY_ACCOUNT` transaction, which requires the account to be funded with some ETH for paying for the transaction fee.
This command sends a `DEPLOY_ACCOUNT` transaction, which requires the account to contain enough ETH to pay for the transaction fee.

To deploy your account, run the following command:

Expand Down
Loading