Bitcoin Forum
November 09, 2024, 01:38:34 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: your own btc node.  (Read 330 times)
y2k-2016 (OP)
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile
December 25, 2019, 10:13:57 AM
 #1

what does it take to set it up?
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3139



View Profile
December 25, 2019, 10:26:33 AM
Merited by OgNasty (1)
 #2

what does it take to set it up?

A little effort and spare resources. The easiest way for you would be to use Bitcoin Core. It will download, verify and store all the blocks by default. If you are low on storage then you can use pruning but you won't be sharing old blocks.
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
December 25, 2019, 12:45:57 PM
 #3

This depends on the reason you want to operate a full node.

There are a lot of guides available online on how to set up a full node. Following them and setting up a node is not that hard.
But the question is what do you want to achieve with that ?

If you need access to all transactions because you are developing something (e.g. a blockchain explorer), then you need to index all transactions (txindex=1).
If you just want to use it as a wallet without relying on any 3rd party, using the pruned mode is enough (takes less space).


So, if you can tell us more about what you want to do with your node and how much disk space you have available, we can help you way more precisely on how to set it up.

khaled0111
Legendary
*
Offline Offline

Activity: 2702
Merit: 3045


Top Crypto Casino


View Profile WWW
December 25, 2019, 03:02:41 PM
Merited by OgNasty (1), The Cryptovator (1)
 #4

Here are the minimum requirements to run your own full node (as stated on bitcoin.org):
  • Desktop or laptop hardware running recent versions of Windows, Mac OS X, or Linux.
  • 200 gigabytes of free disk space, accessible at a minimum read/write speed of 100 MB/s.
  • 2 gigabytes of memory (RAM)
  • A broadband Internet connection with upload speeds of at least 400 kilobits (50 kilobytes) per second
  • An unmetered connection, a connection with high upload limits, or a connection you regularly monitor to ensure it doesn’t exceed its upload limits.
  • 6 hours a day that your full node can be left running.

It's a little bit outdated though.

Right now, blockchain size is almost 260Gb (exactly 255.000Mb according to blockchain.com). Therefore, you will need more than 200 gigabytes of free disk space as suggested above.

The Cryptovator
Legendary
*
Offline Offline

Activity: 2394
Merit: 2223

Signature space for rent


View Profile WWW
December 26, 2019, 05:23:13 AM
 #5

Most likely OP want to help bitcoin network by setting up full bitcoin mode. Or perhaps he/she want to use it for wallet and some development works. Whatever your intention, you need enough patience for that especially during download initial blocks. I were failed multiple time to download (Bitcoin core) due to network issue.

Anyway, I found a thread about your concerns, it would quite helpful for you during setting up your own bitcoin node, here is it, How to run and operate your own bitcoin node. You would found here about basic requirements and useful information. Best of luck for you.

Signature Space for Rent
keychainX
Member
**
Offline Offline

Activity: 378
Merit: 53

Telegram @keychainX


View Profile WWW
December 26, 2019, 08:24:29 AM
 #6

what does it take to set it up?

I just set one up two days ago and this is what it took.

1) laptop with windows 10 8gb of ram and 450gb ssd disk
2) download bitcoin core from https://bitcoin.org/en/download
3) wait to sync, for me it took 2 days over a fast WIFI in nothern Europe

Make sure you have at least 300GB or more as the full node is closing to the 300GB mark and you dont want to move the data again.

Good Luck
/KX

Jet Cash
Legendary
*
Offline Offline

Activity: 2814
Merit: 2472


https://JetCash.com


View Profile WWW
December 26, 2019, 10:50:22 AM
 #7

Because of the way that hard drives work, I believe that you should have a minimum of 500Gb, and that it is preferable to have that on a second drive.

You don't need to run your node every day if you aren't making daily transaction, but it pays to run it frequently to avoid long sync periods. The core is pretty robust, and you can interrupt it if it hasn't completely sync'ing - just make sure you wait for it to close down correctly. If you are using an external SSD for the blockchain, then male sure you "eject" it to ensure that the write cache has been emptied.

Offgrid campers allow you to enjoy life and preserve your health and wealth.
Save old Cars - my project to save old cars from scrapage schemes, and to reduce the sale of new cars.
My new Bitcoin transfer address is - bc1q9gtz8e40en6glgxwk4eujuau2fk5wxrprs6fys
charlie137
Full Member
***
Offline Offline

Activity: 1218
Merit: 220


(ノಠ益ಠ)ノ


View Profile WWW
December 26, 2019, 01:36:37 PM
Merited by malevolent (1)
 #8

you could also spin the node on dedicated machine (like raspberry pi) and play with some LN https://github.com/rootzoll/raspiblitz
gonna take couple a few weeks tho Cheesy

/__      ___ (  /
\\--`-'-|`---\\ |
 |' _/   ` __/ /
 '._  W    ,--'
    |_:_._/
y2k-2016 (OP)
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile
December 26, 2019, 04:44:50 PM
 #9

We need our own node for transaction checking purposes, fore block explorer API has their limits on number of request after which their block ip from which the requests are made...And i thought to my self if you set up your own node you will be limited only to a speed of CPU and internet speed of the machine on which node is set up...Dedicated server definitely. May be anybody familiar with the limit situation? Or how to avoid it? Or any paid block explorer API services))? Once again we don't need to post no transactions just for checking purposes. Thanks to everybody. Happy holidays
nc50lc
Legendary
*
Offline Offline

Activity: 2590
Merit: 6366


Self-proclaimed Genius


View Profile
December 27, 2019, 11:18:30 AM
 #10

We need our own node for transaction checking purposes, fore block explorer API has their limits on number of request after which their block ip from which the requests are made...
Blockchain.com have a form if you want to bypass their "limiters": https://www.blockchain.com/api click "REQUEST API KEY".
That involves registration and providing them some information.

Quote from: y2k-2016
And i thought to my self if you set up your own node you will be limited only to a speed of CPU and internet speed of the machine on which node is set up...Dedicated server definitely.
Internet speed will only be an issue during the sync process.
For fetching blockchain data which requires -txindex, you'll be needing fast drive, powerful processor and a quite huge RAM for huge cache size
since you're talking about a scale beyond the limit of most blockexplorer API.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
y2k-2016 (OP)
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile
December 27, 2019, 11:44:10 AM
 #11

anybody knows what are the limits of the most block explorer API?
nc50lc
Legendary
*
Offline Offline

Activity: 2590
Merit: 6366


Self-proclaimed Genius


View Profile
December 27, 2019, 12:47:54 PM
 #12

anybody knows what are the limits of the most block explorer API?
I'm talking about all known blockexplorers in general, "most block explorer" isn't a name or brand.
Examples of those limits is: capped at x number of queries per hour or day which 'x' can be as high as 1000,
so if you plan on doing that locally, your PC's spec must be higher than the average.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
y2k-2016 (OP)
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile
December 27, 2019, 06:57:29 PM
 #13

got it. Is there any known, paid alternative to it? with good limits on requests, what do you think?
y2k-2016 (OP)
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile
December 27, 2019, 08:47:55 PM
 #14

thanks man.
PrimeNumber7
Copper Member
Legendary
*
Offline Offline

Activity: 1666
Merit: 1901

Amazon Prime Member #7


View Profile
December 27, 2019, 10:19:06 PM
 #15

You should post what information you are looking for and what resources you have. If you have sufficient resources to create a full node, you can do so and use RPC commands to obtain the same information you would be able to get from a block explorer API.
PrimeNumber7
Copper Member
Legendary
*
Offline Offline

Activity: 1666
Merit: 1901

Amazon Prime Member #7


View Profile
December 29, 2019, 03:55:00 AM
 #16

If you have sufficient resources to create a full node, you can do so and use RPC commands to obtain the same information you would be able to get from a block explorer API.

Unfortunately, Bitcoin Core RPC commands is poor compared with Block Explorer API.
Poor in what way? You should be able to get literally the same information from RPC commands, and can write a script to get the information by making a series of RPC calls to feed in whatever information you are looking for into a database.

There are a number of cloud providers that will give you enough credit to allow you to spin up a VPS with sufficient resources to obtain (and load into a database) this information for free.

You would do something along the lines of setting the results of RPC commands as variables that are fed into subsequent RPC commands, and from there set more results into more variables that are iterated through, and those results are inserted into your database.

I don't see any good reason to pay for a Block Explorer API if you have the skill set to programmatically obtain this information yourself. 
y2k-2016 (OP)
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile
December 30, 2019, 03:50:04 PM
 #17

we need a simple balance request ...address/balance but lots of them...no detailed info is needed...in that context (considering that blockchair API charges 500$ a month for 50000 requests a day) wouldn't a separate Node be better?
PrimeNumber7
Copper Member
Legendary
*
Offline Offline

Activity: 1666
Merit: 1901

Amazon Prime Member #7


View Profile
December 31, 2019, 06:22:15 AM
Merited by ABCbits (1), nc50lc (1)
 #18

Poor in what way? You should be able to get literally the same information from RPC commands, and can write a script to get the information by making a series of RPC calls to feed in whatever information you are looking for into a database.

Bitcoin Core RPC missing lots of features compared with Blockexplorer API (e.g. blockchair.com).

I don't recall Bitcoin Core have feature such as address index, built-in filter and external information which isn't on blockchain (e.g. BTC price, pool hashrate, mempool history).
You would use a node's RPC function to programmatically get each confirmed transaction, along with what block each transaction was confirmed in, and you can then make queries as to the balance of each address as of whatever date (as of whatever block) you need the information for. You obviously would be unable to get any historical information about the mempool, but you could also periodically programmatically query mempool related RPC commands and store this information into a database.

we need a simple balance request ...address/balance but lots of them...no detailed info is needed...in that context (considering that blockchair API charges 500$ a month for 50000 requests a day) wouldn't a separate Node be better?
Yes, your best bet is to have a node and a (managed) relational database that you store information about each block/transaction in.

You would first create a full node, download the entire blockchain, and then use RPC commands to get the inputs and outputs of each transaction contained in each block and put this information into a relational database. You can then query the balance of any address as of the current date, or any date you need the balance on.

You can do this yourself, hire someone to do this for you. If you want to do this yourself, but are not quite sure how to get started, there is a kaggle dataset of the bitcoin blockchain, and on the dataset page, there is a link to github repo that appears to claim to be able to get an ETL pipeline for the bitcoin blockchain setup (I have not looked at the code, and cannot vouch for anything in the repo).
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!