Time to read: 1 min
Verify Smart Contracts on Rootstock CLI
To verify a smart contract on the Rootstock CLI, the rsk-cli verify command allows developers to submit their contract source code and other information to the Rootstock Explorer API.
The rsk-cli verify command enables the verification of a smart contract on Rootstock's mainnet or testnet by providing the contract code, address, and other metadata through a JSON file.
Verification on Rootstock's blockchain allows users to confirm that the compiled bytecode on the blockchain matches the source code.
- Mainnet
- Testnet
rsk-cli verify --json <path_to_json> --address <address> --name <contract_name> --decodedArgs <arg1> <arg2> ...
rsk-cli verify --testnet --json <path_to_json> --address <address> --name <contract_name> --decodedArgs <arg1> <arg2> ...