Class: CronosChain::Transactions

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

Constant Summary collapse

DEFAULT_HASH =
{ module: 'transaction' }.freeze

Class Method Summary collapse

Class Method Details

.gettxinfo(txhash) ⇒ Object



15
16
17
18
19
# File 'lib/cronos_chain/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_chain/transactions.rb', line 9

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

  Request.get hash
end