docs: Fix basic-0 tutorial to use ANCHOR_WALLET env var. (#832)
This commit is contained in:
parent
6eead5669e
commit
efb70ea89d
|
@ -131,10 +131,19 @@ Notice how we dynamically created the `initialize` method under
|
|||
the `rpc` namespace.
|
||||
|
||||
Now, make sure to plugin your program's address into `<YOUR-PROGRAM-ID>` (a mild
|
||||
annoyance that we'll address next), and run
|
||||
annoyance that we'll address next). In order to run the client, you'll also need the path
|
||||
to your wallet's keypair you generated when you ran `solana-keygen new`; you can find it
|
||||
by running
|
||||
|
||||
```bash
|
||||
node client.js
|
||||
solana config get keypair
|
||||
```
|
||||
|
||||
Once you've got it, run the client with the environment variable `ANCHOR_WALLET` set to
|
||||
that path, e.g.
|
||||
|
||||
```bash
|
||||
ANCHOR_WALLET=<YOUR-KEYPAIR-PATH> node client.js
|
||||
```
|
||||
|
||||
You just successfully created a client and executed a transaction on your localnet.
|
||||
|
|
Loading…
Reference in New Issue