solidity-btc-parser icon indicating copy to clipboard operation
solidity-btc-parser copied to clipboard

Define API

Open rainbreak opened this issue 9 years ago • 3 comments

  • checkValueSent(tx, address, value)
  • getValueSent(tx, address) (summing over outputs?)
  • checkValueSentFrom(tx, address, value)
  • getValueSentFrom(tx, address)

rainbreak avatar May 14 '16 11:05 rainbreak

@ethers: I'm open to ideas for useful function calls here.

rainbreak avatar Aug 10 '16 14:08 rainbreak

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

ethers avatar Aug 10 '16 23:08 ethers

@iurimatias: trying to define a useful api here. Ideas welcome.

rainbreak avatar Sep 09 '16 04:09 rainbreak