Module: Harmony::Api::V1::Staking::Transaction

Included in:
Client
Defined in:
lib/harmony/api/v1/staking/transaction.rb

Instance Method Summary collapse

Instance Method Details

#get_staking_transaction_by_block_hash_and_index(hash, index) ⇒ Object



21
22
23
24
# File 'lib/harmony/api/v1/staking/transaction.rb', line 21

def get_staking_transaction_by_block_hash_and_index(hash, index)
  params = [hash, Harmony::Api::Utilities.int_to_hex(index)]
  response(post('getStakingTransactionByBlockHashAndIndex', params: params))
end

#get_staking_transaction_by_block_number_and_index(block_number, index) ⇒ Object



16
17
18
19
# File 'lib/harmony/api/v1/staking/transaction.rb', line 16

def get_staking_transaction_by_block_number_and_index(block_number, index)
  params = [Harmony::Api::Utilities.int_to_hex(block_number), Harmony::Api::Utilities.int_to_hex(index)]
  response(post('getStakingTransactionByBlockNumberAndIndex', params: params))
end

#get_staking_transaction_by_hash(hash) ⇒ Object



12
13
14
# File 'lib/harmony/api/v1/staking/transaction.rb', line 12

def get_staking_transaction_by_hash(hash)
  response(post('getStakingTransactionByHash', params: [hash]))
end

#send_raw_staking_transaction(hash) ⇒ Object



8
9
10
# File 'lib/harmony/api/v1/staking/transaction.rb', line 8

def send_raw_staking_transaction(hash)
  response(post('sendRawStakingTransaction', params: [hash]))
end