Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Add docs for checking account balance of a paper wallet #7384

Merged
merged 3 commits into from
Dec 9, 2019
Merged
Changes from 1 commit
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
Next Next commit
Add docs for checking account balance of a paper wallet
  • Loading branch information
jstarry committed Dec 9, 2019
commit 5d231644604ba54a97e04cf91fe9f2450c38a687
4 changes: 4 additions & 0 deletions book/src/paper-wallet/keypair.md
Original file line number Diff line number Diff line change
@@ -63,6 +63,10 @@ explicitly skip seed phrase validation.
solana-keygen pubkey ASK --skip-seed-phrase-validation
```

{% hint style="info" %}
Copy the derived public key to a USB stick for easy usage on networked computers
{% endhint %}

For full usage details run:

```bash
32 changes: 32 additions & 0 deletions book/src/paper-wallet/usage.md
Original file line number Diff line number Diff line change
@@ -10,6 +10,38 @@ written to disk by unencrypted memory swaps. It is the user's responsibility to
protect against this scenario.
{% endhint %}

## Checking Account Balance

All that is needed to check an account balance is the public key of an account.
To retrieve public keys securely from a paper wallet, follow the
[Public Key Derivation](keypair#public-key-derivation) instructions on an
[air gapped computer](https://en.wikipedia.org/wiki/Air_gap_\(networking\)).
Public keys can then be typed manually or transferred via a USB stick into a
networked machine.

Finally, to check the balance, run the following command:

```bash
solana balance <PUBKEY>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assumes the correct RPC URL has been configured with solana set. Perhaps link to those instructions nearby

```

In order to check a list of public keys quickly, append public keys to a file
like so:

`public_keys.txt`
```bash
7hTw3XhprjT2DkVxVixtig9eZwHTZ2rksTSYN7Jh5niZ
9ufAiSyboCZmmEsoStgLYQfnx9KfqP1ZtDK8Wr1j8SJV
# ...
```

And run the following command:
```bash
while read PUBLIC_KEY;
do echo "$PUBLIC_KEY: $(solana balance "$PUBLIC_KEY" | tail -n1)";
done < public_keys.txt
```

## Running a Validator

In order to run a validator, you will need to specify an "identity keypair"