Sha256: b81d90f772e63152c24a6ac0c1afaf6a715021abe8736c2f1b196e3dfd8651a7
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true module Harmony module Api module V1 module CrossSharding module CrossShard 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 def get_pending_cx_receipts response(post('getPendingCXReceipts')) end def get_cx_receipt_by_hash(hash) response(post('getCXReceiptByHash', params: [hash])) end def resend_cx(hash) response(post('resendCx', params: [hash])) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
harmony-api-0.1.4 | lib/harmony/api/v1/cross_sharding/cross_shard.rb |
harmony-api-0.1.3 | lib/harmony/api/v1/cross_sharding/cross_shard.rb |