lib/bitcoin_payable/adapters/blockcypher_adapter.rb
# TODO: Support Bitcoin Cash when it's ready at Blockcypher
Support Bitcoin Cash when it's ready at Blockcypher
Support Bitcoin Cash when it ' s ready at Blockcypher
def convert_transactions(transaction, address)
      {
        txHash: transaction["hash"],
        blockHash: transaction["block_hash"],
        blockTime: DateTime.iso8601(transaction["confirmed"]),
        estimatedTxTime: DateTime.iso8601(transaction["received"]),
        estimatedTxValue: transaction['outputs'].sum{|out| out['addresses'].join.eql?(address) ? out["value"] : 0},
        confirmations: transaction["confirmations"]
      }
    end
def convert_transactions ( transaction , address ) { txHash : transaction [ "hash" ] , blockHash : transaction [ "block_hash" ] , blockTime : DateTime . iso8601 ( transaction [ "confirmed" ] ) , estimatedTxTime : DateTime . iso8601 ( transaction [ "received" ] ) , estimatedTxValue : transaction [ 'outputs' ] . sum { | out | out [ 'addresses' ] . join . eql? ( address ) ? out [ "value" ] : 0 } , confirmations : transaction [ "confirmations" ] } end
TODO: Support Bitcoin Cash when it's ready at Blockcypher
TODO : Support Bitcoin Cash when it ' s ready at Blockcypher
transaction
<not_specific>
address
<not_specific>