File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,23 @@ def submit(wid, transaction)
113
113
body : payload . to_json ,
114
114
headers : { 'Content-Type' => 'application/json' } )
115
115
end
116
+
117
+ # Get tx by id
118
+ # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/getSharedTransaction
119
+ def get ( wid , tx_id , query = { } )
120
+ query_formatted = query . empty? ? '' : Utils . to_query ( query )
121
+ self . class . get ( "/shared-wallets/#{ wid } /transactions/#{ tx_id } #{ query_formatted } " )
122
+ end
123
+
124
+ # List all wallet's transactions
125
+ # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/listSharedTransactions
126
+ #
127
+ # @example
128
+ # list(wid, {start: "2012-09-25T10:15:00Z", order: "descending"})
129
+ def list ( wid , query = { } )
130
+ query_formatted = query . empty? ? '' : Utils . to_query ( query )
131
+ self . class . get ( "/shared-wallets/#{ wid } /transactions#{ query_formatted } " )
132
+ end
116
133
end
117
134
118
135
# API for Addresses
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
module CardanoWallet
4
- VERSION = '0.3.28 '
4
+ VERSION = '0.4.0 '
5
5
end
You can’t perform that action at this time.
0 commit comments