cURL
curl --request GET \
--url https://api.jiffyscan.xyz/v0/getTopFactories \
--header 'x-api-key: <api-key>'import requests
url = "https://api.jiffyscan.xyz/v0/getTopFactories"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.jiffyscan.xyz/v0/getTopFactories', 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://api.jiffyscan.xyz/v0/getTopFactories",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://api.jiffyscan.xyz/v0/getTopFactories"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.jiffyscan.xyz/v0/getTopFactories")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jiffyscan.xyz/v0/getTopFactories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"factories": [
{
"address": "0xb73eb505abc30d0e7e15b73a492863235b3f4309",
"accountsLength": "82"
},
{
"address": "0x9406cc6185a346906296840746125a0e44976454",
"accountsLength": "12"
},
{
"address": "0x71d63edcda95c61d6235552b5bc74e32d8e2527b",
"accountsLength": "7"
},
{
"address": "0xa6b71e26c5e0845f74c812102ca7114b6a896ab2",
"accountsLength": "3"
},
{
"address": "0xf6c1fbe5016602eb0f7dea83cdd39c4c934feea6",
"accountsLength": "2"
},
{
"address": "0xf2da9326f95c5ad195bc6ed366289e0f95d7bc42",
"accountsLength": "1"
},
{
"address": "0x9f21ecfd79a79d40d0b47005f1b7c217009594c5",
"accountsLength": "1"
},
{
"address": "0x56a8e4abd7ddec0d16cd7e292123cf0f478d5646",
"accountsLength": "1"
},
{
"address": "0x54ec360704b2e9e4e6499a732b78094d6d78e37b",
"accountsLength": "1"
},
{
"address": "0x51283946fbb01150b558159ea4b6f43dedd253a4",
"accountsLength": "1"
},
{
"address": "0x09c58cf6be8e25560d479bd52b4417d15bca2845",
"accountsLength": "1"
}
]
}Factory
Get Top Factories
Returns the top factories in a chain
GET
/
getTopFactories
cURL
curl --request GET \
--url https://api.jiffyscan.xyz/v0/getTopFactories \
--header 'x-api-key: <api-key>'import requests
url = "https://api.jiffyscan.xyz/v0/getTopFactories"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.jiffyscan.xyz/v0/getTopFactories', 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://api.jiffyscan.xyz/v0/getTopFactories",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://api.jiffyscan.xyz/v0/getTopFactories"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.jiffyscan.xyz/v0/getTopFactories")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jiffyscan.xyz/v0/getTopFactories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"factories": [
{
"address": "0xb73eb505abc30d0e7e15b73a492863235b3f4309",
"accountsLength": "82"
},
{
"address": "0x9406cc6185a346906296840746125a0e44976454",
"accountsLength": "12"
},
{
"address": "0x71d63edcda95c61d6235552b5bc74e32d8e2527b",
"accountsLength": "7"
},
{
"address": "0xa6b71e26c5e0845f74c812102ca7114b6a896ab2",
"accountsLength": "3"
},
{
"address": "0xf6c1fbe5016602eb0f7dea83cdd39c4c934feea6",
"accountsLength": "2"
},
{
"address": "0xf2da9326f95c5ad195bc6ed366289e0f95d7bc42",
"accountsLength": "1"
},
{
"address": "0x9f21ecfd79a79d40d0b47005f1b7c217009594c5",
"accountsLength": "1"
},
{
"address": "0x56a8e4abd7ddec0d16cd7e292123cf0f478d5646",
"accountsLength": "1"
},
{
"address": "0x54ec360704b2e9e4e6499a732b78094d6d78e37b",
"accountsLength": "1"
},
{
"address": "0x51283946fbb01150b558159ea4b6f43dedd253a4",
"accountsLength": "1"
},
{
"address": "0x09c58cf6be8e25560d479bd52b4417d15bca2845",
"accountsLength": "1"
}
]
}Authorizations
⌘I