lib/bitcoin_payable/adapters/blockchain_info_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)
      confirmations = latest_block["height"] - transaction["block_height"] + 1
      {
        txHash: transaction["hash"],
        blockHash: nil,  
        blockTime: nil,  
        estimatedTxTime: transaction["time"],
        estimatedTxValue: transaction['out'].sum{|out| out['addr'].eql?(address) ? out["value"] : 0},
        confirmations: confirmations
      }
    end
def convert_transactions ( transaction , address ) confirmations = latest_block [ "height" ] - transaction [ "block_height" ] + 1 { txHash : transaction [ "hash" ] , blockHash : nil , blockTime : nil , estimatedTxTime : transaction [ "time" ] , estimatedTxValue : transaction [ 'out' ] . sum { | out | out [ 'addr' ] . eql? ( address ) ? out [ "value" ] : 0 } , confirmations : confirmations } end
TODO: Support Bitcoin Cash when it's ready at Blockcypher
TODO : Support Bitcoin Cash when it ' s ready at Blockcypher
# Not supported # Not supported
transaction
<not_specific>
address
<not_specific>