Ad
Detect If An IP Address Is Running A Bitcoin Node
Is there a way to detect if an IP address is running a Bitcoin node? Maybe I can extract the IP information from the blockchain somehow?
Ad
Answer
There are many ways to do this.
Pretty reliable and relatively simple way is to get the list of Bitcoin nodes from https://api.blockchair.com/bitcoin/nodes. It is the JSON object that looks like:
{"data":{"nodes":{"1.234.63.142:8333":"version":"\/Satoshi:0.16.0\/","country":"KR","height":588031,"flags":1037},
"1.36.226.179:8333":{"version":"\/Satoshi:0.18.0\/","country":"HK","height":588031,"flags":1037},
"100.12.85.110:8333":{"version":"\/Satoshi:0.16.2\/","country":"US","height":588031,"flags":1037},
...
And then check if IP address in question is present in this list.
Ad
source: stackoverflow.com
Related Questions
- → How to install console for plugin development in October CMS
- → How to update data attribute on Ajax complete
- → How to disable assets combining on development in OctoberCMS
- → October CMS - Radio Button Ajax Click Twice in a Row Causes Content to disappear
- → Octobercms/Laravel get id based on relation
- → Octobercms Component Unique id (Twig & Javascript)
- → Passing a JS var from AJAX response to Twig
- → Laravel {!! Form::open() !!} doesn't work within AngularJS
- → MySQL error "Foreign key constraint is incorrectly formed"
- → when i send data with ajax(jquery) i don't find the values in controller without form in laravel 5.1
- → How to eager load and query a pivot table using Eloquent - Laravel 5
- → Any advantages of adding an id column to a pivot table in Laravel?
- → Laravel 5 Cashier Middleware Routing Error
Ad