1

Using JSONRPC, how do I detect if a node has -txindex enabled?

1 Answer 1

1

You can use the getindexinfo RPC call to list (and get the status of) all the available indexes since version 0.21 (currently in rc3).

On my local bitcoind with (only) txindex enabled, here is the output:

$ bitcoin-cli getindexinfo
{
  "txindex": {
    "synced": true,
    "best_block_height": 660887
  }
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.