This quickstart guide will show you how to setup a Stacks wallet using the Blockstack JavaScript CLI and use it to send/receive Stacks tokens on Testnet. This wallet is intended for developer experimentation with Testnet only, do not use this wallet to store your tokens.
@ -15,7 +15,7 @@ You will need to have `npm` installed.
To install the Blockstack CLI, run the following command in terminal.
@ -45,7 +45,7 @@ The private key is what you will need to send tokens later.
## Getting Tokens
To receive Testnet Stacks tokens, visit the Testnet stacks token [faucet](https://www.blockstack.org/faucet). Enter the Stacks address you generated above into the address field on the faucet page.
To receive Testnet Stacks tokens, visit the Testnet stacks token [faucet](https://testnet.blockstack.org/faucet). Enter the Stacks address you generated above into the address field on the faucet page and click "Get STX".
Once the faucet transaction has been broadcasted, you will need to wait for the balance to be reflected in your account.
@ -53,19 +53,22 @@ Once the faucet transaction has been broadcasted, you will need to wait for the
Once you’ve requested Testnet Stacks tokens from the faucet, you can check the balance of your account using the following command.
Using the `-H` option, we specify a connection to the testnet node at `https://neon.blockstack.org`
Verify that your account has tokens before continuing to the next step to send tokens.
## Sending Tokens
In order to send tokens, we will need 5 parameters.
In order to send tokens, we will need the 5 parameters below.
**Recipient Address** - The Stacks address of the recipient
@ -73,14 +76,14 @@ In order to send tokens, we will need 5 parameters.
**Fee Rate** - The transaction fee rate for this transaction. You can safely set a fee rate of 1 for Testnet.
**Nonce** - The nonce is a number that needs to be incremented monotonically for each transaction from the account. This ensures transactions are not duplicated.
**Nonce** - The nonce is a number that needs to be incremented monotonically for each transaction from the account. This ensures transactions are not duplicated. You can get the latest valid nonce for each account using the `balance` command.
**Private Key** - This is the private key corresponding to your account that was generated when you created the wallet earlier using the CLI.
Once we have the parameters, we can use the `send_tokens` command: