Skip to content

Commit 30ad18f

Browse files
committed
refactor(api, blocking)!: add new trait Client, apply to blocking
- add new APIs: `TransactionApi`, `AddressesApi`, `BlocksApi` and `FeeEstimatesApi` - add new `trait Client` with minimal HTTP behaviors: `request`, `send` and `deserialize_{decodable|json|str}` methods. - apply new APIs to `BlockingClient`, create new `handler` to build request and send with minreq HTTP client.
1 parent 53db518 commit 30ad18f

File tree

4 files changed

+550
-205
lines changed

4 files changed

+550
-205
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ hex = { package = "hex-conservative", version = "0.2" }
2323
log = "^0.4"
2424
minreq = { version = "2.11.0", features = ["json-using-serde"], optional = true }
2525
reqwest = { version = "0.11", optional = true, default-features = false, features = ["json"] }
26+
serde_json = { version = "1.0.127" }
2627

2728
[dev-dependencies]
2829
serde_json = "1.0"

0 commit comments

Comments
 (0)