I'm using the blocktrail python api, to try and display transactions above 50 BTC per block for a visualization project. I think I'm almost there but can anyone help me understand where I'm stuck?

client = blocktrail.APIClient(api_key="MY_APIKEY", api_secret="MY_APISECRET", network="BTC", testnet=false)

def getLargeTxs():
  block = client.block_latest()
  transactions = client.block_transactions(block)['data']
  over_50btc = [ item for item in transactions if blocktrail.to_btc( item['estimated_value'] ) > 50.0 ]
  return over_50btc    

Thanks for your help

  • 1
    What's the problem with this program? What happens when you run it? – Nick ODell Dec 23 '14 at 6:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.