2 years ago: Congressman Mick Mulvaney lead a bi-partisan caucus to help educate congressmen on Bitcoin, and “vowed to fight any policy that restricted the adoption and growth of using the technology.” Today: Trump appoints Mulvaney to his cabinet as head of the Office of Management and Budget.

2 years ago: Congressman Mick Mulvaney lead a bi-partisan caucus to help educate congressmen on Bitcoin, and "vowed to fight any policy that restricted the adoption and growth of using the technology." Today: Trump appoints Mulvaney to his cabinet as head of the Office of Management and Budget. submitted by /u/GabeNewell_
[link] [comments]

Bitcoin

Making a proof-of-concept blockchain explorer but I’m wondering how best to access the VPS-hosted node via JSON-RPC

as the title pretty much says, I’ve spun up a VPS-hosted full node and have configured it for JSON-RPC access on localhost. I understand that I can ssh tunnel into that VPS instance and issue calls to it through that, but is that the best way to go about it?

The block explorer will be running on Ruby or PHP and hosted on a separate webhost… I should be able ssh into the node with either Ruby or PHP, but that just feels… dirty… Would it be most convenient to host the blockchain explorer website from the same machine, ie. just initiate the calls from localhost?

I didn’t want to configure my main node for JSON-RPC access because 1) it’s not always on and 2) security concerns. This node that will power the blockchain explorer will not ever hold any funds and has been spun up specifically for this purpose, so I’d really be interested in a solution that would allow an external service (the blockchain explorer) to access its data.

EDIT:

Copying information posted elsewhere for reference here:

just make an ssh tunnel and map the rpc port to localhost on the webnode. Something like this:

ssh -N example.com -L 8332:localhost:8332 

or stunnel also does encrypted tunnels. then make your app connect to localhost.

This would be trivial if I were running the full hosting stack on another VPS–let alone the same one, in which case this wouldn’t be needed as far as I understand–but the hosting service I’m using doesn’t really support this level of control/functionality. It’s strictly a webhost. I can upload Ruby or PHP files and use one of those language’s ssh libraries, but as far as terminal access/generic ssh… not happening.

Which is why, if it is that much more convenient, I’m willing to ditch my current host and spin up apache (or whatever) on the same machine as the full node.

But I don’t see why it’s so hard to do something that seems relatively simple.

Recent Questions – Bitcoin Stack Exchange