module Harmony::Api::V1::CrossSharding::CrossShard
Public Instance Methods
get_cross_shard_transactions_history(address, page_index: 0, page_size: 1000, full_txs: false, tx_type: :all, order: :asc)
click to toggle source
# File lib/harmony/api/v1/cross_sharding/cross_shard.rb, line 8 def get_cross_shard_transactions_history(address, page_index: 0, page_size: 1000, full_txs: false, tx_type: :all, order: :asc) params = [ { 'address' => address, 'pageIndex' => page_index, 'pageIndex' => page_size, 'fullTx' => full_txs, 'txType' => tx_type.to_s.upcase, 'order' => order.to_s.upcase } ] response(post('getCrossShardTransactionsHistory', params: params)) end
get_cx_receipt_by_hash(hash)
click to toggle source
# File lib/harmony/api/v1/cross_sharding/cross_shard.rb, line 26 def get_cx_receipt_by_hash(hash) response(post('getCXReceiptByHash', params: [hash])) end
get_pending_cx_receipts()
click to toggle source
# File lib/harmony/api/v1/cross_sharding/cross_shard.rb, line 22 def get_pending_cx_receipts response(post('getPendingCXReceipts')) end
resend_cx(hash)
click to toggle source
# File lib/harmony/api/v1/cross_sharding/cross_shard.rb, line 30 def resend_cx(hash) response(post('resendCx', params: [hash])) end