Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tokusyu opened this issue Dec 31, 2018 · 1 comment
Open

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

tokusyu opened this issue Dec 31, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@tokusyu
Copy link
Contributor

tokusyu commented Dec 31, 2018

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.

@medvedev1088
Copy link
Member

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

@allenday allenday added the enhancement New feature or request label May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants