rootstock-cli
v1.0.6
Published
A command-line interface for interacting with the Rootstock platform
Maintainers
Readme
Rootstock CLI
A command-line interface for interacting with the Rootstock platform, making it easier to manage wallets, check balances, send transactions, and more.
Features
- Check balances for any address on Rootstock
- Transfer tokens (native RBTC and ERC-20 tokens)
- Send transactions
- View transaction history
- Manage an address book for frequently used addresses
Installation
npm install -g rootstock-cliUsage
Check Balance
rootstock balance <address>Transfer Tokens
rootstock transfer <to> <amount> [options]Options:
-t, --token <address>: Token contract address (optional, defaults to native RBTC)
Send Transaction
rootstock send <to> <amount> [options]Options:
-d, --data <data>: Transaction data (optional)
View Transaction History
rootstock history <address> [options]Options:
-l, --limit <number>: Number of transactions to show (default: 10)
Address Book
rootstock addressbook [options]Options:
-a, --add: Add a new address-l, --list: List all addresses-r, --remove <label>: Remove an address by label
Development
- Clone the repository:
git clone https://github.com/panditdhamdhere/rootstock-cli.git
cd rootstock-cli- Install dependencies:
npm install- Build the project:
npm run build- Link the package locally:
npm linkContributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT
