Hedera CLI in Python
Project description
hedera-cli-py
Hedera CLI in Python
Install
pip install hedera-cli
How to Use
Just run:
hedera-cli
Since hedera-cli depends on hedera-sdk-py, which requires Java >= 11, please make sure your JAVA_HOME environment is set up correctly.
You can run setup
inside hedera-cli and enter your account ID and private key. You can also put them in an .env file to be read automatically at hedera-cli startup. To use a different env file, just use the filename as the argument for hedera-cli. For example:
hedera-cli mainnet.env
A sample env file sample.env
is provided.
commands
Type ? or help
for a list of commands. Type ?command
for help on a specific command, for example ?topic
.
setup
Set up the client.
account
account create (create an account, account id and privatekey will be printed)
account info [accoun_id] (get account info for current account if no accountId is provided,
or for a different account if accountId is provided)
account balance [account_id] (get account balance for current account if no accountId,
or for a different account if accountId is provided)
account delete account_id (delete the account identified by accountId.
you will be prompted for that account's private key)
file
file create [file_path]
file info file_id
file contents file_id
file append file_id [file_path]
file delete file_id
send
send (no argument, you will prompted for recipient account and amount)
topic
topic create [memo] (create a topic with an optional memo)
topic info topic_id (get info about a topic)
topic send topic_id message [[message]] (send message to topic_id)
keygen
Create a key pair.
network
Switch network
exit
Exit the CLI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for hedera_cli-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 435c9db3c54e38f019daaa08156dd6b19d29e504839fc2fa6d7eff381b8e71e2 |
|
MD5 | ae2f1645ea5da1f1af344cbc2423914f |
|
BLAKE2b-256 | 69e5ba8ceca5ab9539fba31970165d58ba858a1298f959ef1e7a6cd94fa946db |