Comments (4)
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.
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.
@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.
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)
- Various output descriptor RPC functions not implemented HOT 2
- `SigHashType`
- Error on Bech32m format introduced in BIP 350 - invalid bech32 checksum variant found Bech32 when Bech32m was expected HOT 19
- Fix unloadwallet RPC result parsing.
- walletcreatefundedpsbt returns a "transaction amount too small" error with miniscript descriptor
- Bitcoin Core >v21 support HOT 3
- Not working with HTTP/1.0, f.e. when proxied HOT 7
- Ability to set custom headers in HTTP requests HOT 1
- Invalid type error
- Remain functionally compatible with pre-25.0 sendrawtransaction HOT 3
- cookie authentication results in HTTP 401 HOT 2
- This crate is not maintained enough HOT 4
- Deriving Deserialize for FundRawTransactionOptions
- Danger: `fee_rate` in `FundRawTransactionOptions` may cause broken code losing money HOT 3
- more verbose error
- JSON-RPC error: transport error: unexpected HTTP code: 400 HOT 6
- Transport(HttpResponseTooShort { actual: 0, needed: 12 }) HOT 6
- Found single-character string literal pattern HOT 1
- Found string literal in env functions HOT 1
- `integration_test` should not depend directly on `bitcoin`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-bitcoincore-rpc.