cardano-cli utility
cardano-cli v1.30.1
commands are rather era-based commands. As we all know the Shelley era brought staking for ADA holders. cardano-cli
provides a "lower"-level information than "higher"-level cardano-wallet
.
If you need a hint on any command or sub-command, feel free to use the help
in any situation. For example to find out how to undelegate from staking pool, type:
cardano-cli stake-address deregistration-certificate --help
You'll see four available flags with a strong type of each property:
--stake-verification-key STRING
--stake-verification-key-file FILE
--stake-script-file FILE
--out-file FILE
Here are the list of available commands (that have corresponding sub-commands and flags):
- address
- stake-address
- key
- transaction
- node
- stake-pool
- query
- genesis
- governance
- text-view
- byron (Byron era specific commands)
- help
- version
Among other things, there's a cardano-node run
command for running a node. To run a node, use the following code:
cardano-node run \
--topology ~/cardano/config/mainnet-topology.json \
--database-path ~/cardano/db/ \
--socket-path ~/cardano/db/node.socket \
--host-addr 127.0.0.1 \
--port 1495 \
--config ~/cardano/config/mainnet-config.json
cardano-wallet utility
cardano-wallet v2021-09-29
commands are definitely wallet-based commands. To use transaction
commands you need both a node and a server running. To generate a private key you need neither running node nor running server (i.e offline and not-synced).
Command Line info says:
The CLI is a proxy to the wallet server, which is required for most commands. Commands are turned into corresponding API calls, and submitted to an up-and-running server. Some commands do not require an active server and can be run offline (e.g. 'recovery-phrase generate').
Here are the list of available commands (that have corresponding sub-commands and flags):
- serve
- recovery-phrase
- key
- wallet
- address
- transaction
- network
- stake-pool
- help
- version
To run a server, use the following code:
cardano-wallet serve \
--port 8090 \
--mainnet \
--database ~/cardano/wallets/db \
--node-socket $CARDANO_NODE_SOCKET_PATH