Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I am using bitcoin.rpc.RawProxy to connect to bitcoind and scrape the data. But I am getting an error when I gettransaction and I have to reindex the blockchain. Thus I am wondering how I set the txindex to 1 so I can reindex and continue.
You can enable the txindex by either adding it to your bitcoin.conf file:
You can run bitcoind with the -txindex flag:
$ bitcoind -txindex
$ bitcoind --help
Maintain a full transaction index, used by the getrawtransaction rpc
call (default: 0)
Required, but never shown
24 days ago