0

I read couple of blogs and responses on hosting server to expose data using JSON-RPC but wanted to confirm if there is a way to query node data that I am not hosting (not connecting via P1P) using JSON-RPC protocol (or any other protocol that allows querying data and not pull everything)

Note: I am talking about mainnet and not testnet

2
  • 1
    The port has to be bound explicitly to the Internet. Why do you want this? What's the problem you need to resolve?
    – Mercedes
    Commented Oct 8, 2021 at 20:33
  • I want to query Bitcoin node for some specific data like transaction. I do not want to host my own BTC node
    – Ankit
    Commented Oct 15, 2021 at 18:36

1 Answer 1

-1

OP posted:

I read couple of blogs and responses on hosting server to expose data using JSON-RPC but wanted to confirm if there is a way to query node data that I am not hosting (not connecting via P1P) using JSON-RPC protocol (or any other protocol that allows querying data and not pull everything)

Note: I am talking about mainnet and not testnet

OP clarified in a comment:

I want to query Bitcoin node for some specific data like transaction. I do not want to host my own BTC node

Yeah, you can query node data that you are not hosting using JSON-RPC.

However, there are many other options you can use:

  1. Use a node's REST API, Bitcoin Core REST API.

  2. Use a REST API provided by some third party, like for instance any famous Bitcoin data analytics platform, or any famous blocks chain explorer.

  3. Contribute a full node to the network and query it privately.

The third option is actually the easiest to get, [by largely far] the most secure, the most readily available, the least vendor lock in, the cheapest to maintain, and the most beneficial to the Bitcoin ecosystem.

1
  • If you don't have access to a node's RPC interface, you won't have access to its REST interface either (assuming you're talking about Bitcoin Core). Commented Oct 20, 2021 at 21:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.