Get Contract ABI for Verified Contract Source Codes

https://api.lorescan.com/[chain]/

  • ?module=contract
  • &action=getabi
  • &address=0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7
  • &apikey=lore-public

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription
addressthe contract address that has a verified source code

Get Contract Source Code for Verified Contract Source Codes

https://api.lorescan.com/[chain]/

  • ?module=contract
  • &action=getsourcecode
  • &address=0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7
  • &apikey=lore-public

Try this endpoint in your browser 🔗

Get Contract Creator and Creation Tx Hash

https://api.lorescan.com/[chain]/

  • ?module=contract
  • &action=getcontractcreation
  • &contractaddresses=0xB83c27805aAcA5C7082eB45C868d955Cf04C337F,0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45,0xe4462eb568E2DFbb5b0cA2D3DbB1A35C9Aa98aad,0xdAC17F958D2ee523a2206206994597C13D831ec7,0xf5b969064b91869fBF676ecAbcCd1c5563F591d0
  • &apikey=lore-public

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription
contractaddressesComma separated contract address

Verify Source Code

https://api.lorescan.com/[chain]/

  • ?module=contract
  • &action=verifysourcecode
  • &contractaddress=0x2A1D1C87d18dd13d7a1e91A42C9fFEc486EB6433
  • &sourceCode=YOUR_SOURCE_CODE
  • &codeformat=solidity-single-file
  • &contractname=HelloWorld
  • &compilerversion=v0.8.10+commit.fc410830
  • &optimizationUsed=0
  • &runs=200
  • &licenseType=1
  • &apikey=lore-public

Try this endpoint in your browser 🔗