How do I get a full transaction index with Bitcoin Core?

1

How can I sync bitcoin full node so that I can access all details of transactions occurring on other nodes and other wallets also, like blockchain.info.

I have synced a full node using below commands, but that's giving details of node wallet account details.

sudo apt-add-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoin-qt
sudo apt-get install bitcoins

indrajit

Posted 2019-10-10T13:45:10.107

Reputation: 13

Answers

1

The commands you have used are not for syncing to the bitcoin blockchain but to install a bitcoin, now with this client you can sync if you want, you will need days or weeks depending on your computer bandwidth and performance and 250+ giga of hard drive, you can start syncing by locating your bitcoin directoryand simply running:

./bitcoind

You can find more information about using and running properly a bitcoin full node here: https://bitcoin.org/en/full-node

Saxtheowl

Posted 2019-10-10T13:45:10.107

Reputation: 1 148

after all this command i set up my bitcoin.conf file and started bitcoin demon.but still not getting details of transaction outside of node.indrajit 2019-10-11T05:55:37.500

bitcoin-cli gettransaction 03d9e448b652155061b5d06594e65cb5507a85518a6b1ae6530c6efed8377657 error code: -5 error message: Invalid or non-wallet transaction idindrajit 2019-10-11T07:52:25.693

1

@indrajit Command gettransaction is for the transaction of your wallet, you can access to all transaction on bitcoin with command getrawtransaction, I suggest you look the documentation official of Bitcoin corer RPC

vincenzopalazzo 2019-10-11T10:42:51.893

Notice that gettransaction is for in wallet transaction, maybe you want to use getrawtransaction also you have to have txindex=1 in your conf file and need to sync the full blockchainSaxtheowl 2019-10-11T10:44:02.490

yes getrawtransaction is working,but how to find to address, from address and amount transacted from that .indrajit 2019-10-14T10:36:47.330

```getTransactionInfo(txHash) { var transaction = client.request("getrawtransaction", [txHash,true]) transaction.then((details) => { console.log("detailsrtry", details.result); var decode = client.request("decoderawtransaction", [details.result.hex]) decode.then((rrrrr)=>{ console.log("details", rrrrr.result.vin) console.log("details1", rrrrr.result.vout); }) }).catch((err) => { console.log("err",err);

    })
}```
indrajit 2019-10-14T10:38:44.233

You cannot do that with a bitcoin client, you should use https://btc.com/ see this question and the answers https://bitcoin.stackexchange.com/questions/5555/is-it-possible-to-view-others-transactions-in-bitcoin-client

Saxtheowl 2019-10-14T10:42:17.370

1so how blockchain.info gives all details to address from address and amount of transactiomindrajit 2019-10-14T13:43:55.643

I suppose they record every transaction from every blocks and trace every one of them, it is quite fastidious, you can build your own system for doing the same if you want https://bitcoin.stackexchange.com/questions/5518/how-do-i-access-information-on-blockexplorer-com-or-blockchain-info-without-issu/5519#5519

Saxtheowl 2019-10-14T15:25:15.163