Blockstream / Blockstream/esplora

Electrum: supports batching?

Open
#428 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.3k
Forks
514
Avg merge
1d 10h
Merged PRs (30d)
16

Description

I am trying to send a batch of requests to receive a batched response, using `wss://blockstream.info/liquidtestnet/electrum-websocket/api` endpoints, but as soon I send an array instead of an object over the socket it disconnects.

It works!
```json
{"jsonrcp":"2.0","id":1,"method":"blockchain.scripthash.get_history","params":["c40a8fadd3f13a91d506b820b1158cbb8166a2f45345088843d8f8483d44e17e"]}
```

Does not works
```json
[
{"jsonrcp":"2.0","id":12103,"method":"blockchain.scripthash.get_history","params":["c40a8fadd3f13a91d506b820b1158cbb8166a2f45345088843d8f8483d44e17e"]},
{"jsonrcp":"2.0","id":12104,"method":"blockchain.scripthash.get_history","params":["57f6e1e3b30eea697504172e2a7967e3cb1f0dac5a6a188d18fa14d5fde1b850"]}
]
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.