From 2bcfbad653c14eec233b33ac78d4f5b347a2443b Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Tue, 30 Mar 2021 15:04:00 -0600 Subject: [PATCH] docs: Reduce airdrop examples to 1 SOL --- docs/src/cli/.usage.md.header | 4 ++-- docs/src/cli/transfer-tokens.md | 20 +++++++++---------- docs/src/developing/clients/jsonrpc-api.md | 2 +- docs/src/integrations/exchange.md | 2 +- docs/src/offline-signing/durable-nonce.md | 18 ++++++++--------- docs/src/running-validator/validator-start.md | 4 ++-- 6 files changed, 25 insertions(+), 25 deletions(-) diff --git a/docs/src/cli/.usage.md.header b/docs/src/cli/.usage.md.header index dbd384b1a3..4c532f9ebf 100644 --- a/docs/src/cli/.usage.md.header +++ b/docs/src/cli/.usage.md.header @@ -20,10 +20,10 @@ $ solana-keygen pubkey ```bash // Command -$ solana airdrop 2 +$ solana airdrop 1 // Return -"2.00000000 SOL" +"1 SOL" ``` ### Get Balance diff --git a/docs/src/cli/transfer-tokens.md b/docs/src/cli/transfer-tokens.md index b5e580be6d..9e899cd7b0 100644 --- a/docs/src/cli/transfer-tokens.md +++ b/docs/src/cli/transfer-tokens.md @@ -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. ```bash -solana airdrop 10 --url https://devnet.solana.com +solana airdrop 1 --url https://devnet.solana.com ``` where you replace the text `` with your base58-encoded @@ -36,7 +36,7 @@ public key/wallet address. #### Check your balance Confirm the airdrop was successful by checking the account's balance. -It should output `10 SOL`: +It should output `1 SOL`: ```bash solana balance --url https://devnet.solana.com @@ -71,7 +71,7 @@ with the private keypair corresponding to the sender's public key in the transaction. ```bash -solana transfer --from 5 --allow-unfunded-recipient --url https://devnet.solana.com --fee-payer +solana transfer --from 0.5 --allow-unfunded-recipient --url https://devnet.solana.com --fee-payer ``` where you replace `` 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! ========================================================================== -$ solana airdrop 10 DYw8jCTfwHNRJhhmFcbXvVDTqWMEVFBX6ZKUmG5CNSKK --url https://devnet.solana.com # Airdropping 10 SOL to my wallet's address/pubkey -Requesting airdrop of 10 SOL from 35.233.193.70:9900 -10 SOL +$ solana airdrop 1 DYw8jCTfwHNRJhhmFcbXvVDTqWMEVFBX6ZKUmG5CNSKK --url https://devnet.solana.com # Airdropping 1 SOL to my wallet's address/pubkey +Requesting airdrop of 1 SOL from 35.233.193.70:9900 +1 SOL $ 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 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! ==================================================================== -$ 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 $ 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 -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 ``` diff --git a/docs/src/developing/clients/jsonrpc-api.md b/docs/src/developing/clients/jsonrpc-api.md index 1fb1d4d27e..2fc254fbcf 100644 --- a/docs/src/developing/clients/jsonrpc-api.md +++ b/docs/src/developing/clients/jsonrpc-api.md @@ -2907,7 +2907,7 @@ Requests an airdrop of lamports to a Pubkey ```bash 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]} ' ``` diff --git a/docs/src/integrations/exchange.md b/docs/src/integrations/exchange.md index 9689e08d5e..bdd7cf50c1 100644 --- a/docs/src/integrations/exchange.md +++ b/docs/src/integrations/exchange.md @@ -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 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, -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. diff --git a/docs/src/offline-signing/durable-nonce.md b/docs/src/offline-signing/durable-nonce.md index afb136b6f8..2a0b268c04 100644 --- a/docs/src/offline-signing/durable-nonce.md +++ b/docs/src/offline-signing/durable-nonce.md @@ -184,8 +184,8 @@ Alice will need some funds to create a nonce account and send to Bob. Airdrop her some SOL ```bash -$ solana airdrop -k alice.json 10 -10 SOL +$ solana airdrop -k alice.json 1 +1 SOL ``` #### - 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 ```bash -$ solana create-nonce-account -k alice.json nonce.json 1 +$ solana create-nonce-account -k alice.json nonce.json 0.1 3KPZr96BTsL3hqera9up82KAU462Gz31xjqJ6eHUAjF935Yf8i1kmfEbo6SVbNaACKE5z6gySrNjVRvmS8DcPuwV ``` @@ -205,7 +205,7 @@ Alice attempts to pay Bob, but takes too long to sign. The specified blockhash expires and the transaction fails ```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" }) Error: Io(Custom { kind: Other, error: "Transaction \"33gQQaoPc9jWePMvDAeyJpcnSPiGUAdtVg8zREWv4GiKjkcGNufgpcbFyRKRrA25NkgjZySEeKue5rawyeH5TzsV\" failed: None" }) ``` @@ -219,29 +219,29 @@ blockhash stored there ```bash $ solana nonce-account nonce.json -balance: 1 SOL +balance: 0.1 SOL minimum balance required: 0.00136416 SOL nonce: F7vmkY3DTaxfagttWjQweib42b6ZHADSx94Tw8gHx3W7 ``` ```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 ``` #### - 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 ```bash $ solana balance -k bob.json -1 SOL +0.01 SOL ``` ```bash $ solana nonce-account nonce.json -balance: 1 SOL +balance: 0.1 SOL minimum balance required: 0.00136416 SOL nonce: 6bjroqDcZgTv6Vavhqf81oBHTv3aMnX19UTB51YhAZnN ``` diff --git a/docs/src/running-validator/validator-start.md b/docs/src/running-validator/validator-start.md index 353893ad46..22ae8ac85b 100644 --- a/docs/src/running-validator/validator-start.md +++ b/docs/src/running-validator/validator-start.md @@ -202,11 +202,11 @@ Wallet Config Updated: /home/solana/.config/solana/wallet/config.yml Airdrop yourself some SOL to get started: ```bash -solana airdrop 10 +solana airdrop 1 ``` 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: