Creating Jungle 3 account

Create Keys

To create a jungle3 account, use cleos or some other tool to create a key for you
1
cleos create key --to-console
2
export OWNER_PRIVATE_KEY= # private key provided
3
export ACTIVE_PRIVATE_KEY= # private key provided
Copied!

Create Account

Create account here with public key: https://monitor.jungletestnet.io/#account​
1
export JUNGLE_ACCOUNT=
2
export JUNGLE_ENDPOINT=https://jungle3.cryptolions.io:443
Copied!
Test accounts can only contain the characters a-z (lowercase), 1-5 and they must be 12 characters.

Import Keys

Import private key(s).
Zeus
Cleos
1
zeus key import $JUNGLE_ACCOUNT --owner-private-key --active-private-key $ACTIVE_PRIVATE_KEY --network=jungle3
Copied!
1
cleos wallet import --private-key $ACTIVE_PRIVATE_KEY
2
​
3
# if you do not have a wallet created, create with
4
cleos wallet create --file wallet_password.pwd
5
# save wallet password
Copied!
Be sure to save your wallet password!

Faucet

Use the faucet to get 100 initial tokens: https://monitor.jungletestnet.io/#faucet​

Stake CPU/NET

Now we will stake EOS for CPU/NET so that we can run transactions.
1
# below amounts use 100 EOS total
2
cleos -u $JUNGLE_ENDPOINT system delegatebw $JUNGLE_ACCOUNT $JUNGLE_ACCOUNT "35.0000 EOS" "65.0000 EOS" -p $JUNGLE_ACCOUNT@active
Copied!
Now unfortunately this isn't enough EOS to set the smart contract. We need to buy RAM, but the faucet only allows 1 use per 6 hours, so what do we do? We create 3 more accounts, send the faceted EOS to our account, and buy that RAM. Let's go.

Create more accounts

Create 3 more accounts using the same public key as before here​
Hit the faucet again here for each account
1
# update from to 1,2,3 created account name
2
# update to to JUNGLE_ACCOUNT
3
# update actor to from
4
cleos -u https://api.jungle3.alohaeos.com push transaction '{
5
"delay_sec": 0,
6
"max_cpu_usage_ms": 0,
7
"actions": [
8
{
9
"account": "eosio.token",
10
"name": "transfer",
11
"data": {
12
"from": "tokenexampl4",
13
"to": "tokenexample",
14
"quantity": "95.0000 EOS",
15
"memo": ""
16
},
17
"authorization": [
18
{
19
"actor": "tokenexampl4",
20
"permission": "active"
21
}
22
]
23
}
24
]
25
}'
26
# repeat for each account
Copied!
If the trx by some miracle goes through, skip to Buy more resources.
If you get Error 3080004: Transaction exceeded the current CPU usage limit imposed on the transaction then you will need to stake some of the CPU first (5 EOS of the 100 you got) then send the remaining CPU (95 from the 5 you're about to stake).
1
export GENEROUS_JUNGLE_ACCOUNT=
2
cleos -u $JUNGLE_ENDPOINT system delegatebw $GENEROUS_JUNGLE_ACCOUNT $GENEROUS_JUNGLE_ACCOUNT "0.0000 EOS" "5.0000 EOS" -p $GENEROUS_JUNGLE_ACCOUNT@active
Copied!
Adjust transfer amount, from, and actor to:
1
"quantity": "95.0000 EOS",
2
"from": "first_account",
3
"actor": "first_account",
Copied!

Buy More Resources

Now we will buy 285 EOS worth of RAM.
1
cleos -u $JUNGLE_ENDPOINT system buyram $JUNGLE_ACCOUNT $JUNGLE_ACCOUNT "285.0000 EOS" -p $JUNGLE_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 $JUNGLE_ENDPOINT set account permission $JUNGLE_ACCOUNT active $JUNGLE_ACCOUNT --add-code
Copied!

#party

If you still don't have enough CPU/NET, repeat the process and delegate more CPU/NET
Last modified 7mo ago