Sha256: e9f641163399a546ad480af324c4857bbc9e05f25f13c38ccf23b0a57824af11

Contents?: true

Size: 747 Bytes

Versions: 8

Compression:

Stored size: 747 Bytes

Contents

# frozen_string_literal: true
class NanoRpc::Accounts
  include NanoRpc::Proxy
  include NanoRpc::AccountsHelper

  attr_reader :addresses

  def initialize(addresses = nil, opts = {})
    unless addresses.is_a?(Array)
      raise NanoRpc::MissingParameters,
            'Missing argument: addresses (str[])'
    end

    @addresses = addresses
    super(opts)
  end

  proxy_params accounts: :addresses

  proxy_method :account_move, required: %i[wallet source]
  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

8 entries across 8 versions & 1 rubygems

Version Path
nano_rpc-0.17.0 lib/nano_rpc/proxies/accounts.rb
nano_rpc-0.16.0 lib/nano_rpc/proxies/accounts.rb
nano_rpc-0.15.0 lib/nano_rpc/proxies/accounts.rb
nano_rpc-0.14.0 lib/nano_rpc/proxies/accounts.rb
nano_rpc-0.13.0 lib/nano_rpc/proxies/accounts.rb
nano_rpc-0.12.0 lib/nano_rpc/proxies/accounts.rb
nano_rpc-0.11.0 lib/nano_rpc/proxies/accounts.rb
nano_rpc-0.10.0 lib/nano_rpc/proxies/accounts.rb