github 账号需要注册在 2019-06-21 之前
Anyone can get KSM at the publicfaucetafter genesis. Unlike test network tokens, we expect KSM to be a scarce resource and thefaucetis designed to limit the amount of tokens distributed to each individual.
In order to prevent Sybil attacks, thefaucetwill only drip to users that have a GitHub account that was created prior to June, 21, 2019. If you do not have a GitHub account that was created prior to this date, please use the KSM Request Form to request tokens.
Thefaucetwill only drip to addresses that contain the string
ksma(case-insensitive, that is,
kSmA would work). It will also never drip to the same address twice. Thus, a new address has to be created each time a user requests KSM tokens.
Obtaining a valid address will require generating numerous addresses until you find one which meets the requirements. You can think of this as a small proof-of-work. You can use the command-line tool Subkey, the web interface (PolkadotJSDashboard), or any other program capable of generating arbitrary addresses. You can even code up your own if you like.
Kusama (canary)on the address networkprefixdrop-down list, then click
Save & Reload.
ksmain the "search for" textbox and leave the "keypair crypto type" by default unless you want to use another type. After this, click
Start generation. It will most likely take at least 10 mins to generate the address pattern you want.
You can install
subkey with this one-line command:
cargo install --force --git https://github.com/paritytech/substrate subkey
Alternatively, you can build
subkey from the source code.
cargo build -p subkey.
subkey --network kusama vanity "ksma" will generate a new key-pair where the address contains the string
Depending on the hardware configuration of your computer and on luck, thiscomputationmay take anywhere from a few seconds to approximately 10 minutes.
$ subkey --network kusama vanity "ksma" Generating key containing pattern 'ksma' 100000 keys searched; best is 190/237 complete 200000 keys searched; best is 201/237 complete 300000 keys searched; best is 207/237 complete ... 1000000 keys searched; best is 225/237 complete 2000000 keys searched; best is 225/237 complete best: 237 == top: 237 Secret Key URI `0x6262bcafcf6e6abbea102a2dbafecb81c28e9737e2cbce3d3ead7bde47806ac4` is account: Public key (hex): 0xe6a979d75da9241c491f12b7e7c2cf015ba9202a4be4649a15b72a3a60e0e730 Address (SS58): Hnksmako1TfL4rsVMnT798syHFdF8rtFQT3tNF4jqLdswZD
Address (SS58) field is the Kusama address that you will need to request KSM to. Notice that the string
ksma starts at the third character. Never share your
Secret Key, as this controls your funds.
See the `subkey` documentation or enter
subkey --help for more usage examples.
Once you have generated your Kusama address containing the string
ksma, you are ready to request KSM from thefaucet.
If you want to support thefaucet, please send KSM to this address: EaG2CRhJWPb7qmdcJvy3LiWdh26Jreu9Dx6R1rXxPmYXoDk
Thefaucet's wallet will be periodically refilled from the address above.
If you are having difficulties using thefaucet, please join the Kusama Watercooler chat and somebody will try to help you.
KSM Request Form: https://docs.google.com/forms/d/e/1FAIpQLSfGAqjXY3xLokwl7A-R4JZAnrBnSI3BVXKMKDLCKVtHaxgs-w/formResponse
Accounts page: https://polkadot.js.org/apps/#/accounts
subkey documentation: https://substrate.dev/docs/en/ecosystem/subkey
Kusama Watercooler chat: https://riot.w3f.tech/#/room/#kusamawatercooler:polkadot.builders
本文分享自微信公众号 - Python爬虫分享（python_crawler）
原文出处及转载信息见文内详细说明，如有侵权，请联系 firstname.lastname@example.org 删除。