bitcoin-etl icon indicating copy to clipboard operation
bitcoin-etl copied to clipboard

Support of REST API "block" for the coins with old APIs.

Open tokusyu opened this issue 5 years ago • 1 comments

As you have already implemented, getblock JSON PRC has 2 versions. Old one doesn't support verbose option, you need to call getrawtransaction RPC to get transaction data.

As long as I know, REST API "blocks" with ".json" extension returns transaction data even if the Coins don't support verbose option on their JSON RPC. https://github.com/bitcoin/bitcoin/blob/master/doc/REST-interface.md#blocks

How about supporting REST API "block"? I know it is not elegant, but it has an advantage on speed.

To make REST API enable, you need add args "-rest" with your bitcoind.

tokusyu avatar Dec 31 '18 09:12 tokusyu

I didn't know about the REST API, thanks for informing. Definitely worth taking a closer look.

medvedev1088 avatar Dec 31 '18 10:12 medvedev1088