Contracts

Number of APIs: 6

  1. Verify Source Code POST https://api.etherscan.io/api?module=contract&action=verifysourcecode&contractaddress=0x2A1D1C87d18dd13d7a1e91A42C9fFEc486EB6433&sourceCode=// SPDX-License-Identifier: MIT // compiler version must be greater than or equal to 0.8.10 and less than 0.9.0 pragma solidity ^0.8.10; contract HelloWorld { string public greet = "Hello World!"; } &codeformat=solidity-single-file&contractname=HelloWorld&compilerversion=v0.8.10+commit.fc410830&optimizationUsed=0&runs=200&licenseType=1&apikey=YourApiKeyToken

  2. Check Source Code Verification Submission Status GET https://api.etherscan.io/api?module=contract&action=checkverifystatus&guid=ezq878u486pzijkvvmerl6a9mzwhv6sefgvqi5tkwceejc7tvn&apikey=YourApiKeyToken

  3. Verify Proxy Contract POST https://api.etherscan.io/api?module=contract&action=verifyproxycontract&address=0xbc46363a7669f6e12353fa95bb067aead3675c29&expectedimplementation=0xe45a5176bc0f2c1198e2451c4e4501d4ed9b65a6&apikey=YourApiKeyToken

  4. Check Proxy Contract Verification Submission Status GET https://api.etherscan.io/api?module=contract&action=checkproxyverification&guid=gwgrrnfy56zf6vc1fljuejwg6pelnc5yns6fg6y2i6zfpgzquz&apikey=YourApiKeyToken

  5. Get Contract ABI for Verified Contract Source Codes GET https://api.etherscan.io/api?module=contract&action=getabi&address=0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413&apikey=YourApiKeyToken

  6. Get Contract Source Code for Verified Contract Source Codes GET https://api.etherscan.io/api?module=contract&action=getsourcecode&address=0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413&apikey=YourApiKeyToken