Overview of Rootstock CLI
The Rootstock CLI (rsk-cli) tool enables users to manage wallets, check balances, send transactions, verify smart contracts, and interact with smart contracts on Rootstock. Rootstock is a Bitcoin sidechain designed for smart contracts.
It supports both mainnet and testnet environments. The tool also provides bridge interaction features so you can transfer assets between Rootstock and Bitcoin through integrated bridge protocols.
The CLI lets you interact with your Rootstock wallet from the terminal. You can create, manage, and fund your wallet with rBTC.
In this guide, we will explore how to use the Rootstock CLI to create a wallet, manage it securely, and add funds to it.
Key Features
rsk-cli groups wallet, transfer, and contract commands behind a single CLI.
Wallet Management
The wallet command lets you manage Ethereum-compatible wallets on Rootstock. You can:
- Create, import, or use an existing wallet.
- List saved wallets, switch wallets, update wallet names, and delete wallets.
- Wallets are encrypted with AES-256-CBC. Private keys are stored in a JSON file.
Checking Balance
Use the balance command to view your wallet's current balance on the Rootstock blockchain. This is supported on both mainnet and testnet.
Sending rBTC
The transfer command enables sending rBTC to another address. Transactions can be initiated on both mainnet and testnet.
View Transaction Status
View the status of a transaction using the tx command by providing the transaction ID.