Crates.io | snconvert |
lib.rs | snconvert |
version | 0.1.3 |
source | src |
created_at | 2024-09-16 11:09:14.819432 |
updated_at | 2024-09-17 09:00:52.624868 |
description | A CLI tool to convert common starknet types |
homepage | https://github.com/Leonard-Pat/starknet-converter-cli |
repository | https://github.com/Leonard-Pat/starknet-converter-cli |
max_upload_size | |
id | 1376233 |
size | 28,619 |
A command-line interface tool for converting between different data types commonly used in the Starknet blockchain ecosystem.
To install please use the cargo install command:
cargo install snconvert
This will install the CLI tool directly from crates.io
The basic syntax for using the Starknet Converter CLI is:
snconvert <INPUT> [OPTIONS]
Where <INPUT>
is the value you want to convert, and [OPTIONS]
are the conversion options you want to apply.
-x, --hex
: Display the hexadecimal representation-f, --felt
: Display the felt (field element) representation-s, --string
: Display the short string representationIf no options are specified, the tool will display all available representations.
Convert a hexadecimal value:
snconvert 0x6869 -f -s
Convert a felt value:
snconvert 310939249775 -x -s
Convert a short string:
snconvert 'Hello, Starknet!' -x -f
Display all representations:
snconvert 0x48656c6c6f20576f726c6421
The Starknet Converter CLI includes robust error handling to help you identify issues with your input:
If an error occurs, the tool will display a helpful error message explaining the issue.
Contributions to the Starknet Converter CLI are welcome! Please feel free to submit pull requests, create issues, or suggest new features.
For installation instructions, please see the Installation section above.