Skip to main content

https://instance_base_url/api?module=contract

Get a list of contracts

listcontracts List sorted in ascending order based on the time a contract was first indexed by the explorer. With filters `unverified(2)` the results will not be sorted for performance reasons. Example:

Get ABI for a verified contract

getabi Also available through a GraphQL addresses query. Example:

Get contract source code for a verified contract

getsourcecode Also available through a GraphQL addresses query. Example:

Get contract creator address hash and creation transaction hash

getcontractcreation Returns contract creator and transaction hash. Up to 10 contracts at the one request Example:

Verify a contract with its source code and contract creation information

verify Example:
Curl Post Example
On successful submission you will receive a guid as a receipt. Use this with checkverifystatusto view verification status.

Verify a contract through Sourcify

verify_via_sourcify
  1. if a smart contract is already verified on Sourcify, it will automatically fetch the data from the repo
  2. otherwise you need to upload source files and JSON metadata file(s).
Example:

POST body example

Verify a vyper contract with its source code and contract creation information

verify_vyper_contract Example
curl POST example

Verify a contract with Standard input JSON file

verifysourcecode Example
solidity-single-file:
License type“See available license types.”

Return status of a verification attempt

checkverifystatus
guid is received as a receipt from the verifysourcecode method.
Example
Return Options: Pending in queue | Pass - Verified | Fail - Unable to verify | Unknown UID

Verify proxy contract

verifyproxycontract Example

Return status of a proxy contract verification attempt

checkproxyverification
guid is received as a receipt from the verifyproxycontract method.
Example