Code Monkey home page Code Monkey logo

Comments (2)

tomtau avatar tomtau commented on July 20, 2024

blocked by #4

from ledger-crypto.

calvinaco avatar calvinaco commented on July 20, 2024

Ledger App Demonstration

Node setup

./chain-maind init MyNode --chain-id testnet-croeseid-1

curl https://raw.githubusercontent.com/crypto-com/chain-docs/master/docs/getting-started/assets/genesis_file/testnet-croeseid-1/genesis.json > ~/.chain-maind/config/genesis.json

sed -i.bak -E 's#^(minimum-gas-prices[[:space:]]+=[[:space:]]+)""$#\1"0.025basetcro"#' ~/.chain-maind/config/app.toml

sed -i.bak -E 's#^(seeds[[:space:]]+=[[:space:]]+).*$#\1"[email protected]:26656,[email protected]:26656,[email protected]:26656"# ; s#^(create_empty_blocks_interval[[:space:]]+=[[:space:]]+).*$#\1"5s"#' ~/.chain-maind/config/config.toml

./chain-maind start

Create address

./chain-maind keys add Alice --coin-type=394 --account=0 --ledger --keyring-backend=test

Create another address

./chain-maind keys add Bob --coin-type=394 --account=1 --ledger --keyring-backend=test
./chain-maind keys list --keyring-backend=test

Query balance and Send transaction

./chain-maind query bank balances tcro1tzhdkuc328cgh2hycyfddtdpqfwwu42ywyfvkj
./chain-maind query bank balances tcro1aaah6juc9n6wvkkkr4zdn073n8gt7waha39xsv

./chain-maind tx bank send tcro1tzhdkuc328cgh2hycyfddtdpqfwwu42ywyfvkj tcro1aaah6juc9n6wvkkkr4zdn073n8gt7waha39xsv 1tcro --chain-id=testnet-croeseid-1 --ledger --keyring-backend=test  --sign-mode=amino-json

./chain-maind query bank balances tcro1tzhdkuc328cgh2hycyfddtdpqfwwu42ywyfvkj
./chain-maind query bank balances tcro1aaah6juc9n6wvkkkr4zdn073n8gt7waha39xsv

Reset (For reference)

rm -rf ~/.chain-maind

from ledger-crypto.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.