utxostack / ckb-bitcoin-spv-service

Synchronize headers to Bitcoin SPV clients running on the CKB chain.
MIT License
1 stars 4 forks source link

Query data through JSON-RPC methods with batch requests #33

Open yangby-cryptape opened 5 months ago

yangby-cryptape commented 5 months ago

Description

Query data through JSON-RPC methods with batch requests.

Example:

curl -X POST -H "Content-Type: application/json" -d '[
    {"jsonrpc": "1.0", "method": "gettxoutproof", "params": [...], "id": 1},
    {"jsonrpc": "1.0", "method": "getblockhash", "params": [...], "id": 2}
]' http://127.0.0.1:8332/