cosmos blockchain: khởi tạo một chain mới
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Cosmos network sử dụng Tendermite, với cơ chế đồng thuận là proof of stake, vậy nên tốc độ xác thực transaction và tạo khối rất nhanh với chi phí tương đối rẻ. Đây cũng là một lựa chọn đáng lưu tâm khi phí giao dịch của các mạng sử dụng etherum đang mỗi ngày một tăng và tốc độ mỗi ngày 1 chậm.
Để khởi tạo 1 chain mới phục vụ cho việc học tập, thư nghiệm, chúng ta có thể thực hiện các bước sau:
1. Install starport
curl https://get.starport.network/starport! | bash
2. Tạo một foler bất kỳ và chạy lệnh:
starport scaffold chain github.com/cosmonaut/hello
3. Start chain
starport chain serve
Kết quả chúng ta nhận được:
🌍 Tendermint node: http://0.0.0.0:26657
🌍 Blockchain API: http://0.0.0.0:1317
🌍 Token faucet: http://0.0.0.0:4500
Chi tiết tham khảo thêm tại: docs.starport.com