Get Contract ABI for Verified Contract Source Codes

https://api.routescan.io/v2/network/mainnet/evm/ /api
  ?module=contract
  &action=getabi
  &address=0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7
  &apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter
Description
address
the contract address that has a verified source code

Get Contract Source Code for Verified Contract Source Codes

https://api.routescan.io/v2/network/mainnet/evm/ /api
  ?module=contract
  &action=getsourcecode
  &address=0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7
  &apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter
Description
address
the contract address that has a verified source code

Verify Source Code

https://api.routescan.io/v2/network/mainnet/evm/ /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.0pragma 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
Try this endpoint in your browser 🔗
Query Parameters
Parameter
Description
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!"; }
constructorArguments
// for contracts that were created with constructor parameters, using ABI encoding.
codeformat
// solidity-single-file | solidity-standard-json-input
contractname
HelloWorld
compilerversion
v0.8.10+commit.fc410830
evmversion
// shangai for the latest version, otherwise choose from the older versions
optimizationUsed
// use 0 for no optimization, and 1 if optimization was used
runs
200
licenseType
1

Check Source Code Verification Submission Status

https://api.routescan.io/v2/network/mainnet/evm/ /api
  ?module=contract
  &action=checkverifystatus
  &guid=ezq878u486pzijkvvmerl6a9mzwhv6sefgvqi5tkwceejc7tvn
  &apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter
Description
guid
ezq878u486pzijkvvmerl6a9mzwhv6sefgvqi5tkwceejc7tvn