verify-contract
Verify a smart contract on the Rootstock blockchain by providing its address, source code, and compilation metadata.
Instructions
Verify a smart contract on the Rootstock blockchain using source code and compilation metadata
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"testnet": "<testnet>",
"contractAddress": "<contractAddress>",
"contractName": "<contractName>",
"jsonContent": "<jsonContent>"
},
"name": "verify-contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| testnet | Yes | Use testnet (true) or mainnet (false) | |
| jsonContent | Yes | JSON Standard Input content from Solidity compilation - contains solcLongVersion and input fields, it is not necesary to readd the content, just validate it contains an 'input' field and others. If the file is too large, you can delete the 'output' section to reduce file size while keeping the required compilation metadata. | |
| contractName | Yes | Name of the contract as defined in the source code | |
| constructorArgs | No | Array of constructor arguments used during deployment (optional) | |
| contractAddress | Yes | Contract address to verify (0x... format) |