Class: Wallets

Inherits:
Base
  • Object
show all
Defined in:
lib/bitnob/objects/wallets.rb

Instance Attribute Summary

Attributes inherited from Base

#production, #secret_key, #url

Instance Method Summary collapse

Methods inherited from Base

#base_url, #check_parameters, #get_request, #initialize, #post_request, #put_request

Constructor Details

This class inherits a constructor from Base

Instance Method Details

#fetch_all_transactions(page_number = 1, limit = 10) ⇒ Object

page_number: number, limit: number default_value: page_number: 1, limit: 10



15
16
17
# File 'lib/bitnob/objects/wallets.rb', line 15

def fetch_all_transactions(page_number=1, limit=10)
  get_request("#{base_url}#{BaseEndpoints::ONCHAIN}?order=ASC&page=#{page_number}&take=#{limit}")
end

#fetch_transaction(transaction_id) ⇒ Object

transaction_id: string



20
21
22
# File 'lib/bitnob/objects/wallets.rb', line 20

def fetch_transaction(transaction_id)
  get_request("#{base_url}#{BaseEndpoints::ONCHAIN}/#{transaction_id}")
end

#fetch_walletsObject

fetch all wallets



9
10
11
# File 'lib/bitnob/objects/wallets.rb', line 9

def fetch_wallets
  get_request("#{base_url}#{BaseEndpoints::ONCHAIN}")
end

#recommend_btc_feesObject

Recommend btc fees



25
26
27
# File 'lib/bitnob/objects/wallets.rb', line 25

def recommend_btc_fees()
  get_request("#{base_url}#{BaseEndpoints::ONCHAIN}/recommend-fees/btc")
end