get verified smart contracts
curl --request GET \
--url https://eth.blockscout.com/api/v2/smart-contractsimport requests
url = "https://eth.blockscout.com/api/v2/smart-contracts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://eth.blockscout.com/api/v2/smart-contracts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://eth.blockscout.com/api/v2/smart-contracts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://eth.blockscout.com/api/v2/smart-contracts"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://eth.blockscout.com/api/v2/smart-contracts")
.asString();require 'uri'
require 'net/http'
url = URI("https://eth.blockscout.com/api/v2/smart-contracts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"items": [
{
"coin_balance": "10000",
"compiler_version": "v0.5.10+commit.5a6ea5b1",
"language": "vyper | yul | solidity",
"has_constructor_args": true,
"optimization_enabled": true,
"verified_at": "2022-03-05T11:40:29.087000Z",
"address_hash": {
"hash": "0xEb533ee5687044E622C69c58B1B12329F56eD9ad",
"implementation_name": "implementationName",
"name": "contractName",
"is_contract": true,
"private_tags": [
{
"address_hash": "0xEb533ee5687044E622C69c58B1B12329F56eD9ad",
"display_name": "name to show",
"label": "label"
}
],
"watchlist_names": [
{
"display_name": "name to show",
"label": "label"
}
],
"public_tags": [
{
"address_hash": "0xEb533ee5687044E622C69c58B1B12329F56eD9ad",
"display_name": "name to show",
"label": "label"
}
],
"is_verified": true,
"ens_domain_name": "domain.eth",
"metadata": {
"slug": "tag_slug",
"name": "Tag name",
"tagType": "name",
"ordinal": 0,
"meta": {}
}
},
"transactions_count": 123,
"market_cap": 1000000000.0001
}
],
"next_page_params": {
"items_count": 50,
"smart_contract_id": 46
}
}API Reference
get verified smart contracts
Deprecation Notice: Per instance endpoints will be deprecated soon in favor of PRO API endpoints. Please see the PRO API reference page for information.
GET
/
smart-contracts
get verified smart contracts
curl --request GET \
--url https://eth.blockscout.com/api/v2/smart-contractsimport requests
url = "https://eth.blockscout.com/api/v2/smart-contracts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://eth.blockscout.com/api/v2/smart-contracts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://eth.blockscout.com/api/v2/smart-contracts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://eth.blockscout.com/api/v2/smart-contracts"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://eth.blockscout.com/api/v2/smart-contracts")
.asString();require 'uri'
require 'net/http'
url = URI("https://eth.blockscout.com/api/v2/smart-contracts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"items": [
{
"coin_balance": "10000",
"compiler_version": "v0.5.10+commit.5a6ea5b1",
"language": "vyper | yul | solidity",
"has_constructor_args": true,
"optimization_enabled": true,
"verified_at": "2022-03-05T11:40:29.087000Z",
"address_hash": {
"hash": "0xEb533ee5687044E622C69c58B1B12329F56eD9ad",
"implementation_name": "implementationName",
"name": "contractName",
"is_contract": true,
"private_tags": [
{
"address_hash": "0xEb533ee5687044E622C69c58B1B12329F56eD9ad",
"display_name": "name to show",
"label": "label"
}
],
"watchlist_names": [
{
"display_name": "name to show",
"label": "label"
}
],
"public_tags": [
{
"address_hash": "0xEb533ee5687044E622C69c58B1B12329F56eD9ad",
"display_name": "name to show",
"label": "label"
}
],
"is_verified": true,
"ens_domain_name": "domain.eth",
"metadata": {
"slug": "tag_slug",
"name": "Tag name",
"tagType": "name",
"ordinal": 0,
"meta": {}
}
},
"transactions_count": 123,
"market_cap": 1000000000.0001
}
],
"next_page_params": {
"items_count": 50,
"smart_contract_id": 46
}
}Was this page helpful?
⌘I