class Ryp::EthereumTransaction
Public Class Methods
data_map()
click to toggle source
www.blockcypher.com/dev/ethereum/#transaction
# File lib/ryp/ethereum_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', gas_used: 'gas_used', gas_price: 'gas_price' } end
Public Instance Methods
fees()
click to toggle source
# File lib/ryp/ethereum_transaction.rb, line 29 def fees @fees / 1e18 end
hash()
click to toggle source
# File lib/ryp/ethereum_transaction.rb, line 21 def hash "0x#{@hash}" end
total()
click to toggle source
# File lib/ryp/ethereum_transaction.rb, line 25 def total @total / 1e18 end
url()
click to toggle source
# File lib/ryp/ethereum_transaction.rb, line 33 def url "https://etherscan.io/tx/#{hash}" end