Module: Harmony::Api::V1::CrossSharding::CrossShard
- Defined in:
- lib/harmony/api/v1/cross_sharding/cross_shard.rb
Instance Method Summary collapse
- #get_cross_shard_transactions_history(address, page_index: 0, page_size: 1000, full_txs: false, tx_type: :all, order: :asc) ⇒ Object
- #get_cx_receipt_by_hash(hash) ⇒ Object
- #get_pending_cx_receipts ⇒ Object
- #resend_cx(hash) ⇒ Object
Instance Method Details
#get_cross_shard_transactions_history(address, page_index: 0, page_size: 1000, full_txs: false, tx_type: :all, order: :asc) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# 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) ⇒ Object
26 27 28 |
# 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 ⇒ Object
22 23 24 |
# File 'lib/harmony/api/v1/cross_sharding/cross_shard.rb', line 22 def get_pending_cx_receipts response(post('getPendingCXReceipts')) end |
#resend_cx(hash) ⇒ Object
30 31 32 |
# File 'lib/harmony/api/v1/cross_sharding/cross_shard.rb', line 30 def resend_cx(hash) response(post('resendCx', params: [hash])) end |