1
I'm trying to use getrawtransaction to get transaction details (for any address) from my local blockchain. What I have is an address in readable format, "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa" but the input to getrawtransaction is a hexadecimal string. I found the following solution that does not change the string at all.
let address='1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa';
address=address.toString('hex')
console.log(address);
client.getRawTransaction(address, function(error, o) { console.log(o); });
Any ideas?
The feature seems pretty basic to me, but I'm sure the core devs have good reason for it. Thank you for the suggestion I will try this out. – Corbin – 2018-03-09T00:29:43.430
For normal operation an address index is not necessary, plus it is expensive to maintain, and there exists other software that is more appropriate for it. – Pieter Wuille – 2018-03-09T00:42:36.240
Pieter thank you. May I ask what other software that is? – Corbin – 2018-03-10T18:40:11.517