bitcoinx / colored-coin-tools

22 stars 7 forks source link

node-bitcoin-exit: RPC API to get transaction information #3

Open killerstorm opened 11 years ago

killerstorm commented 11 years ago

We need to be able to get data for any transaction. Currently node-bitcoin-exit provides no such facility, so we get it by proxying requests to bitcoin-tx-spent-db.

This RPC API should be available via socket.io just like other APIs provided by node-bitcoin-exit.

Bonus feature: ability to query many transactions at once.

Bounty: 0.5 BTC

katuma commented 11 years ago

See https://github.com/katuma/node-bitcoin-exit/commit/d8f77b639ee4fd4a4734d53c75dd127a839131ab and https://github.com/katuma/node-bitcoin-exit/commit/fd670642a275f9abf5d88b408eca3e63b52646c2

Still needs some testing. As a consequence, there is no longer dependency on bitcoin-tx-spent-db, query.js changes are minimal as possible to ease porting of future changes in spent-db.