metaspan.io - tools
Here you will find various tools and utilities for blockchain-related applications.
The tools are open source, and the code can be found on github, here
Featured: metaspan.io - graphql endpoint for Kusama and Polkadot
Blending data from API and on-chain (realtime)
Featured: Prometheus monitoring for Kusama and Polkadot 1kV Candidates
Source code here:
https://github.com/metaspan/kusama-1kv-prometheus-exporter
https://github.com/metaspan/polkadot-1kv-prometheus-exporter
Point your prometheus.yml file as follows:
scrape_configs: scrape_interval: 60s - job_name: "dot-1kv" metrics_path: "/metrics/16ce9zrmiuAtdi9qv1tuiQ1RC1xR6y6NgnBcRtMoQeAobqpZ" static_configs: - targets: ["dot-1kv-prometheus.metaspan.io"]
API Endpoints
We provide the following endpoints (data is a cache of upstream, refreshed each 30 mins):
API | Upstream |
---|---|
https://gql.metaspan.io/graphql | combination of metaspan api and on-chain |
https://api.metaspan.io/api/{chain}/candidate | https://{chain}.w3f.community/candidates |
https://api.metaspan.io/api/{chain}/candidate/{stash} | https://{chain}.w3f.community/candidate/{stash} |
https://api.metaspan.io/api/{chain}/score | https://{chain}.w3f.community/score |
https://api.metaspan.io/api/{chain}/score/{stash} | https://{chain}.w3f.community/score/{stash} |
https://api.metaspan.io/api/{chain}/validator | https://{chain}.w3f.community/validator |
https://api.metaspan.io/api/{chain}/validator/{stash} | https://{chain}.w3f.community/validator/{stash} |
https://api.metaspan.io/api/{chain}/nominator | https://{chain}.w3f.community/nominator |
https://api.metaspan.io/api/{chain}/nominator/{accountId} | https://{chain}.w3f.community/nominator/{accountId} |
https://api.metaspan.io/api/{chain}/locationStats[?name=Your Location] | https://{chain}.w3f.community/locationStats |
https://api.metaspan.io/api/{chain}/locationStats/{locationId} Warning: the locationId could be misleading. Please note there are multiple records for each location "name", recording changes over time | https://{chain}.w3f.community/locationStats/{locationId} |