Port
ufw allow ssh; ufw allow 30333; ufw enable
Docker
sudo apt update; sudo apt upgrade -y
sudo apt-get update && sudo apt install jq git && sudo apt install apt-transport-https ca-certificates curl software-properties-common -y && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" && sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin && sudo apt-get install docker-compose-plugin
Ganti
namaValidator
dengan nama mu danIP.VPS.MU
dengan IP VPS mu.
docker run -d \
--name ctc \
-p 30333:30333 \
-v credit:/creditcoin-node/data \
gluwa/creditcoin:latest \
--name "namaValidator" \
--telemetry-url "wss://telemetry.creditcoin.network/submit/ 0" \
--public-addr "/dns4/IP.VPS.MU/tcp/30333" \
--chain main \
--bootnodes "/dns4/bootnode.creditcoin.network/tcp/30333/p2p/12D3KooWAEgDL126EUFxFfdQKiUhmx3BJPdszQHu9PsYsLCuavhb" "/dns4/bootnode2.creditcoin.network/tcp/30333/p2p/12D3KooWSQye3uN3bZQRRC4oZbpiAZXkP2o5UZh6S8pqyh24bF3k" "/dns4/bootnode3.creditcoin.network/tcp/30333/p2p/12D3KooWFrsEZ2aSfiigAxs6ir2kU6en4BewotyCXPhrJ7T1AzjN" \
--validator \
--base-path /creditcoin-node/data \
--port 30333
docker logs -f ctc
atau jika tidak ingin melihat logs terlalu banyak
docker logs ctc -f --since 10s
Pilih itu
![Screenshot_21](https://private-user-images.githubusercontent.com/98658943/264416846-5059d29e-a184-4989-8d8a-861bbed4e190.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2NjQzMDAsIm5iZiI6MTcyNTY2NDAwMCwicGF0aCI6Ii85ODY1ODk0My8yNjQ0MTY4NDYtNTA1OWQyOWUtYTE4NC00OTg5LThkOGEtODYxYmJlZDRlMTkwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDIzMDY0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIzNzRjYzZmZGNmOTIyNWFmNTdiNTUzNTI1NTQ5MGM0Y2FjYWIxNWZhN2RjOTllOTUwZGViNGQ4MTViOGFkMTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.s1eWfCbwPlnmIi24YAgdIWZ7BYSYEd4x5EQNZ_PX0_o)
Jika namamu sudah ada disana = aman
Skip jika menggunakan akun testnet, langsung Stake saja
Generate 2 akun, lalu simpan pharse. Import ke Subwallet(extension)
docker exec -it ctc creditcoin-cli new
docker exec -it ctc creditcoin-cli wizard -a 1000
1000
bisa diganti berapapun, itu nominal yang akan di stake
Untuk stash
isi dengan pharse akun pertama, dan controller
isi dengan pharse akun kedua
Output yang benar:
🧙 Running staking wizard...
Using the following parameters:
💰 Stash account: 5CGBosx2Fw34u9jJtSgEQkoNTtHkPLKgsfjJiE3mDSWb44MW
🕹️ Controller account: 5E1tpiU3SnunxwbtvTc7U7gykNYspTZu9yqTcch2pHamAvw5
🪙 Amount to bond: 1000 CTC
🎁 Reward destination: Staked
📡 Node URL: ws://127.0.0.1:9945📡 Node URL: ws://127.0.0.1:9945
💸 Commission: 0
🔐 Blocked: No
Continue? (y/n): y
Sudah, selanjutnya cek disini PolkadotJS Connect ke Subwallet, jika ada addressmu, tinggal menunggu aktif.
docker exec -it ctc creditcoin-cli --help
- Pergi ke Polkadot
- Pilih wallet
stash
mu - Set identity dan atur display name
- Pergi ke Polkadot bagian Staking -> Account
- Pilih Validator mu
- Klik validate dan atur mau berapa commision rate
docker stop ctc; docker rm ctc
docker rmi gluwa/creditcoin:latest