Module: Minter::Api::TransactionsResource

Included in:
Client
Defined in:
lib/minter/api/resources/transactions_resource.rb

Instance Method Summary collapse

Instance Method Details

#transaction_info(transaction_hash:) ⇒ Object



6
7
8
9
# File 'lib/minter/api/resources/transactions_resource.rb', line 6

def transaction_info(transaction_hash:)
  path = "/transaction/#{transaction_hash}"
  get(path)
end

#transactions(query:, page: 1, per_page: 10) ⇒ Object



11
12
13
14
15
# File 'lib/minter/api/resources/transactions_resource.rb', line 11

def transactions(query:, page: 1, per_page: 10)
  params = { query: query, page: page, per_page: per_page }
  path = "/transactions"
  get(path, params)
end

#unconfirmed_transactions(limit: 1) ⇒ Object



17
18
19
20
21
# File 'lib/minter/api/resources/transactions_resource.rb', line 17

def unconfirmed_transactions(limit: 1)
  params = { limit: limit }
  path = "/unconfirmed_txs"
  get(path, params)
end