Skip to content

chain.io not working because of firewall #6

@mapodev

Description

@mapodev

The API has a firewall set up that's why it's not working anymore.

I tried to change it to

  response = connection:request("GET", bitcoinRequestUrl(bitcoinAddress), {})
  json = JSON(response)
  balance = json:dictionary()['balance']
  return balance
end


-- Helper Functions
-- function convertSatoshiToBitcoin(satoshi)
--   return satoshi / 100000000
-- end

function cryptocompareRequestUrl()
  return "https://api.coinmarketcap.com/v1/ticker/bitcoin/?convert=EUR"
end

function bitcoinRequestUrl(bitcoinAddress)
  return "https://blockexplorer.com/api/addr/" .. bitcoinAddress .. "/"
end

But my extenstion is then not showed anymore. Someone help? Does it depend on the signature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions