code: function calcPrice(err, transactions) {
        // flatten array
        transactions = transactions.reduce(function(a, b) { return a.concat(b) }, [])
  
        // leave only the gasprice
        // FIXME: convert number using a bignum library
        transactions = transactions.map(function(a) { return parseInt(a.gasPrice, 16) }, [])
  
        // order ascending
        transactions.sort(function(a, b) { return a - b })
  
        // ze median
        var half = Math.floor(transactions.length / 2)
  
        var median
        if (transactions.length % 2)
          median = transactions[half]
        else
          median = Math.floor((transactions[half - 1] + transactions[half]) / 2.0)
  
        end(null, median)
      }
docs: FIXME: this could be made much faster