GithubHelp home page GithubHelp logo

Comments (4)

apoelstra avatar apoelstra commented on August 19, 2024

Your issue is probably that this library's underlying HTTP transport does not support HTTPS. In practice this probably means that you can't connect to any non-local nodes unless you add a local proxy or something.

We have some plans to switch our HTTP implementation to minreq but there's a fair bit of prepatory work we need to do (and we'll need some cooperation from the authors of that library, probably), but until we get that sorted, this is the situation.

from rust-bitcoincore-rpc.

oneforalone avatar oneforalone commented on August 19, 2024

Okay, I see. I just made it with hyper crate, but it seems that there's lots methods should write from the scratch.

And what comes in my mind is, just change the HTTP implementation in jsonrpc crate, cause I've noticed that you are using jsonrpc crate for HTTP connection. However, I'm kind new with Rust and Bitcoin, just can't tell which is better. Writing it from scratch using hyper / minreq, or modifying this repos codes? Could you give me some advice?

from rust-bitcoincore-rpc.

apoelstra avatar apoelstra commented on August 19, 2024

@oneforalone if you want to switch to Hyper I'd advise to start from scratch -- it's actually not too complicated. You just make HTTP requests then parse the resulting data using serde_json::from_reader or something like that.

What this crate gives you are pre-defined data structures for the responses that Bitcoin Core gives to RPC calls, but if you only need a couple RPCs, these are easy to implement yourself.

from rust-bitcoincore-rpc.

oneforalone avatar oneforalone commented on August 19, 2024

What this crate gives you are pre-defined data structures for the responses that Bitcoin Core gives to RPC calls, but if you only need a couple RPCs, these are easy to implement yourself.

Got it, really appreciate.

from rust-bitcoincore-rpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.