docs: Reduce airdrop examples to 1 SOL

This commit is contained in:
Trent Nelson 2021-03-30 15:04:00 -06:00 committed by mergify[bot]
parent ce7f7c2b6c
commit 2bcfbad653
6 changed files with 25 additions and 25 deletions

View File

@ -20,10 +20,10 @@ $ solana-keygen pubkey
```bash ```bash
// Command // Command
$ solana airdrop 2 $ solana airdrop 1
// Return // Return
"2.00000000 SOL" "1 SOL"
``` ```
### Get Balance ### Get Balance

View File

@ -27,7 +27,7 @@ on devnet have **no** value, so don't worry if you lose them.
First, _airdrop_ yourself some play tokens on the devnet. First, _airdrop_ yourself some play tokens on the devnet.
```bash ```bash
solana airdrop 10 <RECIPIENT_ACCOUNT_ADDRESS> --url https://devnet.solana.com solana airdrop 1 <RECIPIENT_ACCOUNT_ADDRESS> --url https://devnet.solana.com
``` ```
where you replace the text `<RECIPIENT_ACCOUNT_ADDRESS>` with your base58-encoded where you replace the text `<RECIPIENT_ACCOUNT_ADDRESS>` with your base58-encoded
@ -36,7 +36,7 @@ public key/wallet address.
#### Check your balance #### Check your balance
Confirm the airdrop was successful by checking the account's balance. Confirm the airdrop was successful by checking the account's balance.
It should output `10 SOL`: It should output `1 SOL`:
```bash ```bash
solana balance <ACCOUNT_ADDRESS> --url https://devnet.solana.com solana balance <ACCOUNT_ADDRESS> --url https://devnet.solana.com
@ -71,7 +71,7 @@ with the private keypair corresponding to the sender's public key in the
transaction. transaction.
```bash ```bash
solana transfer --from <KEYPAIR> <RECIPIENT_ACCOUNT_ADDRESS> 5 --allow-unfunded-recipient --url https://devnet.solana.com --fee-payer <KEYPAIR> solana transfer --from <KEYPAIR> <RECIPIENT_ACCOUNT_ADDRESS> 0.5 --allow-unfunded-recipient --url https://devnet.solana.com --fee-payer <KEYPAIR>
``` ```
where you replace `<KEYPAIR>` with the path to a keypair in your first wallet, where you replace `<KEYPAIR>` with the path to a keypair in your first wallet,
@ -101,12 +101,12 @@ Save this seed phrase to recover your new keypair:
width enhance concert vacant ketchup eternal spy craft spy guard tag punch # If this was a real wallet, never share these words on the internet like this! width enhance concert vacant ketchup eternal spy craft spy guard tag punch # If this was a real wallet, never share these words on the internet like this!
========================================================================== ==========================================================================
$ solana airdrop 10 DYw8jCTfwHNRJhhmFcbXvVDTqWMEVFBX6ZKUmG5CNSKK --url https://devnet.solana.com # Airdropping 10 SOL to my wallet's address/pubkey $ solana airdrop 1 DYw8jCTfwHNRJhhmFcbXvVDTqWMEVFBX6ZKUmG5CNSKK --url https://devnet.solana.com # Airdropping 1 SOL to my wallet's address/pubkey
Requesting airdrop of 10 SOL from 35.233.193.70:9900 Requesting airdrop of 1 SOL from 35.233.193.70:9900
10 SOL 1 SOL
$ solana balance DYw8jCTfwHNRJhhmFcbXvVDTqWMEVFBX6ZKUmG5CNSKK --url https://devnet.solana.com # Check the address's balance $ solana balance DYw8jCTfwHNRJhhmFcbXvVDTqWMEVFBX6ZKUmG5CNSKK --url https://devnet.solana.com # Check the address's balance
10 SOL 1 SOL
$ solana-keygen new --no-outfile # Creating a second wallet, a paper wallet $ solana-keygen new --no-outfile # Creating a second wallet, a paper wallet
Generating a new keypair Generating a new keypair
@ -118,14 +118,14 @@ Save this seed phrase to recover your new keypair:
clump panic cousin hurt coast charge engage fall eager urge win love # If this was a real wallet, never share these words on the internet like this! clump panic cousin hurt coast charge engage fall eager urge win love # If this was a real wallet, never share these words on the internet like this!
==================================================================== ====================================================================
$ solana transfer --from my_solana_wallet.json 7S3P4HxJpyyigGzodYwHtCxZyUQe9JiBMHyRWXArAaKv 5 --allow-unfunded-recipient --url https://devnet.solana.com --fee-payer my_solana_wallet.json # Transferring tokens to the public address of the paper wallet $ solana transfer --from my_solana_wallet.json 7S3P4HxJpyyigGzodYwHtCxZyUQe9JiBMHyRWXArAaKv 0.5 --allow-unfunded-recipient --url https://devnet.solana.com --fee-payer my_solana_wallet.json # Transferring tokens to the public address of the paper wallet
3gmXvykAd1nCQQ7MjosaHLf69Xyaqyq1qw2eu1mgPyYXd5G4v1rihhg1CiRw35b9fHzcftGKKEu4mbUeXY2pEX2z # This is the transaction signature 3gmXvykAd1nCQQ7MjosaHLf69Xyaqyq1qw2eu1mgPyYXd5G4v1rihhg1CiRw35b9fHzcftGKKEu4mbUeXY2pEX2z # This is the transaction signature
$ solana balance DYw8jCTfwHNRJhhmFcbXvVDTqWMEVFBX6ZKUmG5CNSKK --url https://devnet.solana.com $ solana balance DYw8jCTfwHNRJhhmFcbXvVDTqWMEVFBX6ZKUmG5CNSKK --url https://devnet.solana.com
4.999995 SOL # The sending account has slightly less than 5 SOL remaining due to the 0.000005 SOL transaction fee payment 0.499995 SOL # The sending account has slightly less than 0.5 SOL remaining due to the 0.000005 SOL transaction fee payment
$ solana balance 7S3P4HxJpyyigGzodYwHtCxZyUQe9JiBMHyRWXArAaKv --url https://devnet.solana.com $ solana balance 7S3P4HxJpyyigGzodYwHtCxZyUQe9JiBMHyRWXArAaKv --url https://devnet.solana.com
5 SOL # The second wallet has now received the 5 SOL transfer from the first wallet 0.5 SOL # The second wallet has now received the 0.5 SOL transfer from the first wallet
``` ```

View File

@ -2907,7 +2907,7 @@ Requests an airdrop of lamports to a Pubkey
```bash ```bash
curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d ' curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"requestAirdrop", "params":["83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri", 50]} {"jsonrpc":"2.0","id":1, "method":"requestAirdrop", "params":["83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri", 1000000000]}
' '
``` ```

View File

@ -714,4 +714,4 @@ Be sure to test your complete workflow on Solana devnet and testnet
[clusters](../clusters.md) before moving to production on mainnet-beta. Devnet [clusters](../clusters.md) before moving to production on mainnet-beta. Devnet
is the most open and flexible, and ideal for initial development, while testnet is the most open and flexible, and ideal for initial development, while testnet
offers more realistic cluster configuration. Both devnet and testnet support a faucet, offers more realistic cluster configuration. Both devnet and testnet support a faucet,
run `solana airdrop 10` to obtain some devnet or testnet SOL for developement and testing. run `solana airdrop 1` to obtain some devnet or testnet SOL for developement and testing.

View File

@ -184,8 +184,8 @@ Alice will need some funds to create a nonce account and send to Bob. Airdrop
her some SOL her some SOL
```bash ```bash
$ solana airdrop -k alice.json 10 $ solana airdrop -k alice.json 1
10 SOL 1 SOL
``` ```
#### - Create Alice's nonce account #### - Create Alice's nonce account
@ -195,7 +195,7 @@ Now Alice needs a nonce account. Create one
> Here, no separate [nonce authority](#nonce-authority) is employed, so `alice.json` has full authority over the nonce account > Here, no separate [nonce authority](#nonce-authority) is employed, so `alice.json` has full authority over the nonce account
```bash ```bash
$ solana create-nonce-account -k alice.json nonce.json 1 $ solana create-nonce-account -k alice.json nonce.json 0.1
3KPZr96BTsL3hqera9up82KAU462Gz31xjqJ6eHUAjF935Yf8i1kmfEbo6SVbNaACKE5z6gySrNjVRvmS8DcPuwV 3KPZr96BTsL3hqera9up82KAU462Gz31xjqJ6eHUAjF935Yf8i1kmfEbo6SVbNaACKE5z6gySrNjVRvmS8DcPuwV
``` ```
@ -205,7 +205,7 @@ Alice attempts to pay Bob, but takes too long to sign. The specified blockhash
expires and the transaction fails expires and the transaction fails
```bash ```bash
$ solana pay -k alice.json --blockhash expiredDTaxfagttWjQweib42b6ZHADSx94Tw8gHx3W7 bob.json 1 $ solana pay -k alice.json --blockhash expiredDTaxfagttWjQweib42b6ZHADSx94Tw8gHx3W7 bob.json 0.01
[2020-01-02T18:48:28.462911000Z ERROR solana_cli::cli] Io(Custom { kind: Other, error: "Transaction \"33gQQaoPc9jWePMvDAeyJpcnSPiGUAdtVg8zREWv4GiKjkcGNufgpcbFyRKRrA25NkgjZySEeKue5rawyeH5TzsV\" failed: None" }) [2020-01-02T18:48:28.462911000Z ERROR solana_cli::cli] Io(Custom { kind: Other, error: "Transaction \"33gQQaoPc9jWePMvDAeyJpcnSPiGUAdtVg8zREWv4GiKjkcGNufgpcbFyRKRrA25NkgjZySEeKue5rawyeH5TzsV\" failed: None" })
Error: Io(Custom { kind: Other, error: "Transaction \"33gQQaoPc9jWePMvDAeyJpcnSPiGUAdtVg8zREWv4GiKjkcGNufgpcbFyRKRrA25NkgjZySEeKue5rawyeH5TzsV\" failed: None" }) Error: Io(Custom { kind: Other, error: "Transaction \"33gQQaoPc9jWePMvDAeyJpcnSPiGUAdtVg8zREWv4GiKjkcGNufgpcbFyRKRrA25NkgjZySEeKue5rawyeH5TzsV\" failed: None" })
``` ```
@ -219,29 +219,29 @@ blockhash stored there
```bash ```bash
$ solana nonce-account nonce.json $ solana nonce-account nonce.json
balance: 1 SOL balance: 0.1 SOL
minimum balance required: 0.00136416 SOL minimum balance required: 0.00136416 SOL
nonce: F7vmkY3DTaxfagttWjQweib42b6ZHADSx94Tw8gHx3W7 nonce: F7vmkY3DTaxfagttWjQweib42b6ZHADSx94Tw8gHx3W7
``` ```
```bash ```bash
$ solana pay -k alice.json --blockhash F7vmkY3DTaxfagttWjQweib42b6ZHADSx94Tw8gHx3W7 --nonce nonce.json bob.json 1 $ solana pay -k alice.json --blockhash F7vmkY3DTaxfagttWjQweib42b6ZHADSx94Tw8gHx3W7 --nonce nonce.json bob.json 0.01
HR1368UKHVZyenmH7yVz5sBAijV6XAPeWbEiXEGVYQorRMcoijeNAbzZqEZiH8cDB8tk65ckqeegFjK8dHwNFgQ HR1368UKHVZyenmH7yVz5sBAijV6XAPeWbEiXEGVYQorRMcoijeNAbzZqEZiH8cDB8tk65ckqeegFjK8dHwNFgQ
``` ```
#### - Success! #### - Success!
The transaction succeeds! Bob receives 1 SOL from Alice and Alice's stored The transaction succeeds! Bob receives 0.01 SOL from Alice and Alice's stored
nonce advances to a new value nonce advances to a new value
```bash ```bash
$ solana balance -k bob.json $ solana balance -k bob.json
1 SOL 0.01 SOL
``` ```
```bash ```bash
$ solana nonce-account nonce.json $ solana nonce-account nonce.json
balance: 1 SOL balance: 0.1 SOL
minimum balance required: 0.00136416 SOL minimum balance required: 0.00136416 SOL
nonce: 6bjroqDcZgTv6Vavhqf81oBHTv3aMnX19UTB51YhAZnN nonce: 6bjroqDcZgTv6Vavhqf81oBHTv3aMnX19UTB51YhAZnN
``` ```

View File

@ -202,11 +202,11 @@ Wallet Config Updated: /home/solana/.config/solana/wallet/config.yml
Airdrop yourself some SOL to get started: Airdrop yourself some SOL to get started:
```bash ```bash
solana airdrop 10 solana airdrop 1
``` ```
Note that airdrops are only available on Devnet and Testnet. Both are limited Note that airdrops are only available on Devnet and Testnet. Both are limited
to 10 SOL per request. to 1 SOL per request.
To view your current balance: To view your current balance: