Skip to content

Instantly share code, notes, and snippets.

@0xV4L3NT1N3
Created March 16, 2024 07:47
Show Gist options
  • Save 0xV4L3NT1N3/974d6bfb58070e0fe4e38d626cdf1c44 to your computer and use it in GitHub Desktop.
Save 0xV4L3NT1N3/974d6bfb58070e0fe4e38d626cdf1c44 to your computer and use it in GitHub Desktop.
Sample Solidity Json Input for Etherscan Verification
{
"language": "Solidity",
"sources": {
"contracts/Verified.sol": {
"content": "//SPDX-License-Identifier: MIT\r\npragma solidity ^0.8.18;\r\n\r\ncontract Verified {\r\n string public greet =\r\n \"Increase this counter if you completed this tutorial\";\r\n string public tutorial =\r\n \"https://docs.etherscan.io/contract-verification/multichain-verification\";\r\n\r\n uint256 public verified = 0;\r\n\r\n function completedTutorial() public {\r\n verified += 1;\r\n }\r\n}\r\n"
}
},
"settings": {
"metadata": {
"bytecodeHash": "none"
},
"optimizer": {
"enabled": false,
"runs": 0
},
"outputSelection": {
"*": {
"*": [
"abi",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers",
"metadata"
],
"": [
"ast"
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment