Sha256: bebd36527767b95279d89fdd2aabde53d5f92101978dd9acf9cc84ad6e6eb134
Contents?: true
Size: 702 Bytes
Versions: 1
Compression:
Stored size: 702 Bytes
Contents
# frozen_string_literal: true class Raiblocks::Accounts include Raiblocks::Proxy include Raiblocks::AccountsProxyHelper attr_accessor :addresses def initialize(addresses = nil, client = nil) unless addresses.is_a?(Array) raise Raiblocks::MissingParameters, 'Missing argument: addresses (str[])' end @addresses = addresses @client = client || Raiblocks.client end proxy_params accounts: :addresses proxy_method :accounts_balances proxy_method :accounts_create, required: %i[wallet count], optional: %i[work] proxy_method :accounts_frontiers proxy_method :accounts_pending, required: %i[count], optional: %i[threshold source] end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
raiblocks_rpc-0.4.0 | lib/raiblocks/proxies/accounts.rb |