Open rainbreak opened 8 years ago
@ethers: I'm open to ideas for useful function calls here.
Thanks, I'm not yet sure about the higher level apis, but meantime the primitives would be to get inputs and outputs. I looked around and saw some ideas here: https://21.co/learn/21-lib-bitcoin/#parsing-a-transaction https://blockchain.info/api/blockchain_api - see Single transaction
The other main libs don't seem to have higher level apis or have documentation about them: https://github.com/bitpay/bitcore-lib https://github.com/bitcoinjs/bitcoinjs-lib
@iurimatias: trying to define a useful api here. Ideas welcome.
checkValueSent(tx, address, value)
getValueSent(tx, address)
(summing over outputs?)checkValueSentFrom(tx, address, value)
getValueSentFrom(tx, address)