Class: CronosExplorer::Transactions

Inherits:
Object
  • Object
show all
Defined in:
lib/cronos_explorer/transactions.rb

Constant Summary collapse

DEFAULT_HASH =
{ module: 'transaction' }.freeze

Class Method Summary collapse

Class Method Details

.getstatus(txhash) ⇒ Object



21
22
23
24
25
# File 'lib/cronos_explorer/transactions.rb', line 21

def getstatus(txhash)
  hash = DEFAULT_HASH.merge(action: 'getstatus', txhash: txhash)
  
  Request.get hash
end

.gettxinfo(txhash) ⇒ Object



15
16
17
18
19
# File 'lib/cronos_explorer/transactions.rb', line 15

def gettxinfo(txhash)
  hash = DEFAULT_HASH.merge(action: 'gettxinfo', txhash: txhash)
  
  Request.get hash
end

.gettxreceiptstatus(txhash) ⇒ Object



9
10
11
12
13
# File 'lib/cronos_explorer/transactions.rb', line 9

def gettxreceiptstatus(txhash)
  hash = DEFAULT_HASH.merge(action: 'gettxreceiptstatus', txhash: txhash, tag: 'latest')

  Request.get hash
end