Method: Pochette::Backends::BlockchainInfo#propagate
- Defined in:
- lib/pochette/backends/blockchain_info.rb
#propagate(hex) ⇒ Object
95 96 97 98 99 100 101 |
# File 'lib/pochette/backends/blockchain_info.rb', line 95 def propagate(hex) uri = URI.parse("https://blockchain.info/pushtx") params = { "tx" => hex } params['api_code'] = api_key if api_key response = Net::HTTP.post_form(uri, params) raise StandardError.new(response) if response.code.to_i != 200 end |