class Ryp::BitcoinTransaction
Public Class Methods
data_map()
click to toggle source
www.blockcypher.com/dev/bitcoin/#transaction-hash-endpoint
# File lib/ryp/bitcoin_transaction.rb, line 5 def self.data_map { hash: 'hash', height: 'block_height', total: 'total', fees: 'fees', size: 'size', received_at: 'received', confirmed_at: 'confirmed', confirmations: 'confirmations' } end
Public Instance Methods
fees()
click to toggle source
# File lib/ryp/bitcoin_transaction.rb, line 23 def fees @fees / 1e8 end
total()
click to toggle source
# File lib/ryp/bitcoin_transaction.rb, line 19 def total @total / 1e8 end
url()
click to toggle source
# File lib/ryp/bitcoin_transaction.rb, line 27 def url "https://blockchain.info/tx/#{hash}" end