🔒
Cardsec: Security Assessment Tool for Cardano SPOs
  • Overview
  • Roadmap
  • Stake Pool stats
  • Guides
    • Getting started
    • Features
      • System
      • Port scanner
      • Vulnerability Scanner
      • Network Monitor
      • One-click install
      • Setup
    • Dos/DDos Guide
    • Personal Security
Powered by GitBook
On this page

Stake Pool stats

PreviousRoadmapNextGetting started

Last updated 3 years ago

f you are unfamiliar with the Cardano network. There are two types of nodes in the Cardano environment: block-producing nodes and relay nodes. The relays allow direct communication with the block-producing node. These nodes are run by stake pool operators on various hosting providers.

This pie chart represents data gathered and analyzed from 2668 Cardano Mainnet Relays showing the distribution across various hosting providers. (Note: 2.8% of the data is not available in whois databases. Thus, represented by none in the given pie chart)

Steps to analyse stake pool (mainnet/testent) data yourself. The data was obtained through the Cardano GraphQL API which is available opensource

Steps To Reproduce

curl 'https://graphql-api.mainnet.dandelion.link/' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: https://graphql-api.mainnet.dandelion.link' --data-binary '{"query":"{ stakePools{ id, url, relays {ipv4, dnsName, ipv6, dnsSrvName, port} }}\n"}'

Note: Change "mainnet" to "testnet", if you are analysing testnet.

  1. Extract all the ip addresses and resolve dns names.

  2. Find whois records of all the ips. You can use this script to do a mass whois search.

    sudo apt-get install netcat
    wget https://raw.githubusercontent.com/SkryptLabs/Cardsec/main/cardsec/stakePoolStats/mass-whois.sh
    chmod +x mass-whois.sh
    ./mass-whois.sh [file containing ips]

Curl in terminal or extract from

here
here