Contract

https://instance_base_url/api?module=contract

Get a list of contracts

listcontracts

List sorted in ascending order based on the time a contact was first indexed by the explorer. With filters `not_decompiled`(`4`) or `not_verified(4)` the results will not be sorted for performance reasons.

Example:

https://instance_base_url/api
   ?module=contract
   &action=listcontracts

Get ABI for a verified contract

getabi

Also available through a GraphQL addresses query.

Example:

https://instance_base_url/api
   ?module=contract
   &action=getabi
   &address={addressHash}

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:

Return status of a verification attempt

checkverifystatus

guid is received as a receipt from the verifysourcecode method.

Example

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