Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Jul 11, 2021

txindex without quotes:

$ curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getindexinfo", "params": [txindex]}' -H 'content-type: text/plain;' http://127.0.0.1:18333/



{"result":null,"error":{"code":-32700,"message":"Parse error"},"id":null}

txindex with quotes:

$ curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getindexinfo", "params": ["txindex"]}' -H 'content-type: text/plain;' http://127.0.0.1:18333/



{"result":{"txindex":{"synced":true,"best_block_height":2032943}},"error":null,"id":"curltest"}

Copy link
Contributor

@klementtan klementtan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK e0aa8de

tested:

$ ./src/bitcoin-cli -signet help getindexinfo
...
Examples:
> bitcoin-cli getindexinfo
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getindexinfo", "params": []}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
> bitcoin-cli getindexinfo txindex
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getindexinfo", "params": ["txindex"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/

@ghost ghost closed this Jul 12, 2021
@ghost ghost mentioned this pull request Aug 25, 2021
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants