0.1.8 • Published 9 days ago

consolechain v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
9 days ago

ConsoleChain

ConsoleChain is a command-line interface (CLI) tool designed for seamless interaction with smart contracts on various blockchain networks.

ConsoleChain Screenshot

Installation

Install ConsoleChain globally using npm:

npm install -g consolechain

How to Use

To utilize ConsoleChain, simply invoke the CLI by providing the contract address, the chain name, and the path to the contract's ABI file.

consolechain 0xB5AD8162a7E6DFBc1d12aF9A494779376B44ed1b --chain syscoin --abi /abi-path/abi.json

For ERC-721, ERC-1155, and ERC-20 type contracts, use the --standard argument with values 721, 1155, or 20. This loads a generic ABI with predefined methods for the selected standard.

consolechain 0xB5AD8162a7E6DFBc1d12aF9A494779376B44ed1b --chain syscoin --standard 721

To execute methods requiring a connected address, add a private key to the CLI. The key is stored in a file named consolechain.json within the .config/ folder in your operating system's home directory.

consolechain set-pk your-private-key

The CLI features autocompletion; press the tab key to complete a function name or tab twice to view all contract ABI methods. To discover the parameters for function calls, type the function name with the -h argument.

ConsoleChain Autocomplete

Finally, to execute a function, type the function name followed by the arguments separated by space.

ConsoleChain Function Execution

License

This project is licensed under the MIT License - see the LICENSE file for details.

0.1.8

9 days ago

0.1.7

4 months ago

0.1.6

6 months ago

0.1.5

10 months ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago