Class: SilaRuby::Wallets
- Inherits:
-
Object
- Object
- SilaRuby::Wallets
- Includes:
- ApiHelpers
- Defined in:
- lib/sila-ruby/wallets.rb
Overview
WALLETS ======================================
Class Method Summary collapse
-
.get_sila_balance(params = {}) ⇒ Object
——————————————– GET-SILA-BALANCE ————————— ——————————————– Checks token balance on a blockchain address.
-
.get_wallet(handle, user_key) ⇒ Object
——————————————– GET-WALLET ——————————— ——————————————– Gets details about the user wallet used to generate the usersignature header.
-
.get_wallets(handle, params = {}, user_key) ⇒ Object
——————————————– GET-WALLETS ——————————– ——————————————– Gets array of user handle’s transactions with detailed status information.
Methods included from ApiHelpers
Class Method Details
.get_sila_balance(params = {}) ⇒ Object
GET-SILA-BALANCE —————————
Checks token balance on a blockchain address.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/sila-ruby/wallets.rb', line 67 def self.get_sila_balance(params={}) = 'header_msg' # Example of params passed # # params = { # address: "0x..." # } sila_post_signed('get_sila_balance', {}, , params, nil, nil) end |
.get_wallet(handle, user_key) ⇒ Object
GET-WALLET ———————————
Gets details about the user wallet used to generate the usersignature header.
26 27 28 29 30 31 |
# File 'lib/sila-ruby/wallets.rb', line 26 def self.get_wallet(handle, user_key) header = { user_handle: handle } = 'header_msg' sila_post_signed('get_wallet', header, , nil, user_key, nil) end |
.get_wallets(handle, params = {}, user_key) ⇒ Object
GET-WALLETS ——————————–
Gets array of user handle’s transactions with detailed status information.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/sila-ruby/wallets.rb', line 37 def self.get_wallets(handle, params={}, user_key) header = { user_handle: handle } = 'header_msg' # Example of params passed # # params = { # search_filters: { # page: 1, # per_page: 20, # sort_ascending: false, # blockchain_network: "ETH", # blockchain_address: "", # nickname: "" # } # } sila_post_signed('get_wallets', header, , params, user_key, nil) end |