{"id":22239,"date":"2024-09-17T18:13:45","date_gmt":"2024-09-17T16:13:45","guid":{"rendered":"https:\/\/contabo.com\/blog\/kb\/103000283074-can-you-provide-more-information-on-contabo-s-bitcoin-node-image\/"},"modified":"2025-04-10T18:08:36","modified_gmt":"2025-04-10T16:08:36","slug":"103000283074-can-you-provide-more-information-on-contabo-s-bitcoin-node-image","status":"publish","type":"kb","link":"https:\/\/contabo.com\/blog\/kb\/103000283074-can-you-provide-more-information-on-contabo-s-bitcoin-node-image\/","title":{"rendered":"Can You Provide More Information On Contabo&#8217;s Bitcoin Node Image?"},"content":{"rendered":"<h4 dir=\"ltr\"><strong dir=\"ltr\">Can you provide more information on Contabo&#8217;s Bitcoin Node image?<\/strong><\/h4>\n<p dir=\"ltr\">Contabo&#8217;s Bitcoin Node image is based on the Bitcoin Core v25.0 (<a href=\"https:\/\/bitcoincore.org\/bin\/\" rel=\"noopener noreferrer nofollow nofollow\" target=\"_blank\"><u>https:\/\/bitcoincore.org\/bin\/<\/u><\/a>).<\/p>\n<p dir=\"ltr\"><\/p>\n<p dir=\"ltr\">The Bitcoin Image does not come with synchronized chain data, the sync starts after the image is installed, this can take up to 12-48h depending on the available nodes.<\/p>\n<p dir=\"ltr\"><\/p>\n<h4 class=\"anchor anchorWithStickyNavbar_LWe7\" dir=\"ltr\"><strong dir=\"ltr\">What is the data path structure of&nbsp;<\/strong><strong dir=\"ltr\">Contabo&#8217;s Bitcoin Node image?<\/strong><\/h4>\n<ul>\n<li>Chain data: \/var\/lib\/bitcoind<\/li>\n<li>bitcoind config: \/etc\/bitcoin\/bitcoin.conf<\/li>\n<li>bitcoin-cli config: \/home\/bitcoin\/.bitcoin\/bitcoin.conf<\/li>\n<\/ul>\n<h4 dir=\"ltr\"><strong>How do I switch to the Bitcoin user?<\/strong><\/h4>\n<p dir=\"ltr\">To access the bitcoin-cli command, you should switch to the bitcoin user. You can do this with the following command:<\/p>\n<p><\/p>\n<pre>sudo -u bitcoin -i<\/pre>\n<h4 class=\"anchor anchorWithStickyNavbar_LWe7\" dir=\"ltr\"><strong dir=\"ltr\">How do I find the P2P network info:<\/strong><\/h4>\n<p>You can run the following command:<\/p>\n<p><\/p>\n<pre>bitcoin-cli getnetworkinfo&nbsp;<\/pre>\n<p dir=\"ltr\">You should get a response like this:<\/p>\n<p dir=\"ltr\"><\/p>\n<pre dir=\"ltr\">\"networkactive\": true,\n\"connections\": 13,\n\"connections_in\": 3,\n\"connections_out\": 10,<\/pre>\n<h4 dir=\"ltr\"><strong>How do I find the Blockchain (sync status) info:<\/strong><\/h4>\n<p>You can run the following command:<\/p>\n<p><\/p>\n<pre dir=\"ltr\">bitcoin-cli getblockchaininfo&nbsp;<\/pre>\n<pre dir=\"ltr\">You should get a response like this:\n\n{\n\"chain\": \"main\",\n\"blocks\": 170260, &lt;-- Highest synced block\n\"headers\": 813630, &lt;-- Highest block on the network\n\"bestblockhash\": \"0000000000000049ec54c7c6df79fce11e724b4b56103e005e03fa8e8c2a4a09\",\n\"difficulty\": 1496978.595025569,\n\"time\": 1331249860,\n\"mediantime\": 1331245089,\n\"verificationprogress\": 0.002915741002688988, &lt;---- 0.29% synced\n\"initialblockdownload\": true,\n\"chainwork\": \"00000000000000000000000000000000000000000000000df7e38ad4228191c1\",\n\"size_on_disk\": 1234406989,\n\"pruned\": false,\n\"warnings\": \"\"\n}<\/pre>\n<p dir=\"ltr\"><strong>To note the syncing can take up to 48h, depending on available nodes.&nbsp;<\/strong><\/p>\n<p dir=\"ltr\"><strong><br \/><\/strong><\/p>\n<p dir=\"ltr\">Also, the field verificationprogress never reaches 1.00 even at fully synced it will be around 0.9999.<\/p>\n<h4 dir=\"ltr\"><strong><br \/><\/strong><\/h4>\n<h4 dir=\"ltr\"><strong>How do I check if the Bitcoin Node is running?<\/strong><\/h4>\n<p dir=\"ltr\">You can run the following command:<\/p>\n<pre dir=\"ltr\">systemctl status &nbsp;bitcoind.service&nbsp;<\/pre>\n<h4 dir=\"ltr\"><strong>How do I restart the bitcoind server:<\/strong><\/h4>\n<p dir=\"ltr\">You can run the following command:<\/p>\n<pre dir=\"ltr\">systemctl restart bitcoind.service<\/pre>\n<h4 dir=\"ltr\"><strong>How do I read logs?<\/strong><\/h4>\n<p dir=\"ltr\">You can run the following command:<\/p>\n<pre>tail -n 100 &nbsp;\/var\/lib\/bitcoind\/debug.log&nbsp;<\/pre>\n<h4 dir=\"ltr\"><strong dir=\"ltr\">How do I edit &nbsp;the bitcoind config file:<\/strong><\/h4>\n<p dir=\"ltr\">You can run the following command:<\/p>\n<pre>nano \/etc\/bitcoin\/bitcoin.conf<\/pre>\n<p dir=\"ltr\">To note,<strong>&nbsp;you will need to restart your node to apply new configurations.<\/strong><\/p>\n<h4 dir=\"ltr\"><strong><br \/><\/strong><\/h4>\n<h4 dir=\"ltr\"><strong>How do I access the data directory of bitcoin service:<\/strong><\/h4>\n<p dir=\"ltr\">You can run the following command:<\/p>\n<pre dir=\"ltr\">\/var\/lib\/bitcoind&nbsp;<\/pre>\n<h4 dir=\"ltr\"><strong>How do activate the firewall:<\/strong><\/h4>\n<p dir=\"ltr\">You can run the following command:<\/p>\n<pre>sudo apt install ufw\nsudo ufw default deny incoming\nsudo ufw default allow outgoing\nsudo ufw allow ssh # If you're using SSH\nsudo ufw allow 8333 # Allows Bitcoin network connections\nsudo ufw enable<\/pre>\n<p dir=\"ltr\">Extra rules:<\/p>\n<pre>sudo ufw allow 8332 # For JSON-RPC for remote wallet\n\nsudo ufw allow 28332 # Zero MQ for listening\nsudo ufw allow 28333 # Zero MQ for listening\n\nsudo ufw allow 8443 # Lightning Terminal<\/pre>\n<h4 dir=\"ltr\"><strong dir=\"ltr\">Here are some common used plugins application for Bitcoin Nodes which you may find helpful:<\/strong><\/h4>\n<ul>\n<li><a dir=\"ltr\" href=\"https:\/\/docs.btcpayserver.org\/\" rel=\"noreferrer nofollow noopener nofollow\" target=\"_blank\"><u dir=\"ltr\">BTC Payserver<\/u><\/a><\/li>\n<li dir=\"ltr\"><a href=\"https:\/\/github.com\/lightningnetwork\/lnd\/blob\/master\/docs\/INSTALL.md\" rel=\"noreferrer nofollow noopener nofollow\" target=\"_blank\"><u>Lightning Network Node<\/u><\/a><\/li>\n<li dir=\"ltr\"><a href=\"https:\/\/github.com\/lightninglabs\/lightning-terminal\" rel=\"noreferrer nofollow noopener nofollow\" target=\"_blank\"><u dir=\"ltr\">Lightning Terminal<\/u><\/a><\/li>\n<\/ul>\n<p><\/p>\n<h4 dir=\"ltr\">\n<p><\/h4>\n<p><\/p>\n<\/p>\n<p><span class=\"ast-load-more active\"><a href=\"https:\/\/help.contabo.com\/en\/support\/solutions\/articles\/103000283074-can-you-provide-more-information-on-contabo-s-bitcoin-node-image-\" rel=\"nofollow\">Details&#8230;<\/a> <\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Can you provide more information on Contabo&#8217;s Bitcoin Node image? Contabo&#8217;s Bitcoin Node image is based on the Bitcoin Core v25.0 (https:\/\/bitcoincore.org\/bin\/). The Bitcoin Image does not come with synchronized chain data, the sync starts after the image is installed, this can take up to 12-48h depending on the available nodes. What is the data [&hellip;]<\/p>\n","protected":false},"author":72,"featured_media":0,"template":"","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[2067],"tags":[],"class_list":["post-22239","kb","type-kb","status-publish","hentry","category-kb"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Contabo Web","author_link":"https:\/\/contabo.com\/blog\/author\/julius-nalivaiko\/"},"uagb_comment_info":0,"uagb_excerpt":"Can you provide more information on Contabo&#8217;s Bitcoin Node image? Contabo&#8217;s Bitcoin Node image is based on the Bitcoin Core v25.0 (https:\/\/bitcoincore.org\/bin\/). The Bitcoin Image does not come with synchronized chain data, the sync starts after the image is installed, this can take up to 12-48h depending on the available nodes. What is the data&hellip;","_links":{"self":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/kb\/22239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/users\/72"}],"version-history":[{"count":1,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/kb\/22239\/revisions"}],"predecessor-version":[{"id":22940,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/kb\/22239\/revisions\/22940"}],"wp:attachment":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media?parent=22239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/categories?post=22239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/tags?post=22239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}