Creating CryptoKylin Account
Setting up a Kylin testnet account can sometimes be more an art than a science. If you have any issues please reach out to us.
The latest details on how to acquire an account are usually on their repo: https://github.com/cryptokylin/CryptoKylin-Testnet​

Free Account

Test accounts can only contain the characters a-z (lowercase), 1-5 and they must be 12 characters.
Example:
1
curl http://faucet-kylin.blockzone.net/create/111111111ooo
Copied!
If that guy is giving you flack, try this guy: https://testnet-tools.eosargentina.io/kylin​

Get Free tokens

Get free token with: http://faucet-kylin.blockzone.net/get_token/your_account_name. You can get 100 tokens each call and max 1000 tokens per day.
Example:
1
curl http://faucet-kylin.blockzone.net/get_token/111111111ooo
Copied!
If that does not work, yalla https://testnet-tools.eosargentina.io/kylin​

Setup Account

The following guide walks you through setting up an account, creating an EOSIO wallet with keosd, importing the private keys, buying RAM for your account, and staking EOS for CPU/NET so you can run transactions.

Setup

1
# must be EOSIO account name format
2
# 12 characters a-z lowercase 1-5
3
export KYLIN_ACCOUNT=yourtestaccount
4
​
5
# Configure endpoint
6
export KYLIN_ENDPOINT=https://kylin.eosn.io
7
​
8
# Create wallet
9
cleos wallet create --file wallet_password.pwd
Copied!

Create account

Below we will create a public/private key pair.
1
curl http://faucet-kylin.blockzone.net/create/$KYLIN_ACCOUNT > keys.json
2
export ACTIVE_PRIVATE_KEY=`cat keys.json | jq -e '.data.account.active.privateKey'`
3
export OWNER_PRIVATE_KEY=`cat keys.json | jq -e '.data.account.owner.privateKey'`
4
​
5
# import keys
6
zeus key import $KYLIN_ACCOUNT --owner-private-key $OWNER_PRIVATE_KEY --active-private-key $ACTIVE_PRIVATE_KEY --network=kylin
7
cleos wallet import --private-key $ACTIVE_PRIVATE_KEY
Copied!
Be sure to save your wallet password!

Faucet some tokens

Below we will fit the faucet to give us some tokens.
1
curl http://faucet-kylin.blockzone.net/get_token/$KYLIN_ACCOUNT
2
curl http://faucet-kylin.blockzone.net/get_token/$KYLIN_ACCOUNT
3
# you can do this up to 10 times
Copied!

Buy RAM, Stake CPU/NET

Now we will buy RAM so that we can deploy a smart contract, and we stake EOS for CPU/NET so that we can run transactions.
1
# below amounts use 1000 EOS total
2
cleos -u $KYLIN_ENDPOINT system delegatebw $KYLIN_ACCOUNT $KYLIN_ACCOUNT "50.0000 EOS" "350.0000 EOS" -p $KYLIN_ACCOUNT@active
3
cleos -u $KYLIN_ENDPOINT system buyram $KYLIN_ACCOUNT $KYLIN_ACCOUNT "600.0000 EOS" -p $KYLIN_ACCOUNT@active
Copied!

Set eosio.code permission

eosio.code allows a smart contract to sign actions itself, we will set this up under the active permission level.
1
cleos -u $KYLIN_ENDPOINT set account permission $KYLIN_ACCOUNT active $KYLIN_ACCOUNT --add-code
Copied!
Last modified 1mo ago