Module: NanoRpc::AccountsMethods

Included in:
Accounts
Defined in:
lib/nano_rpc/methods/accounts_methods.rb

Instance Method Summary collapse

Instance Method Details

#proxy_methodsObject

rubocop:disable Metrics/MethodLength



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/nano_rpc/methods/accounts_methods.rb', line 7

def proxy_methods # rubocop:disable Metrics/MethodLength
  {
    account_move: {
      required: %i[wallet source]
    },
    accounts_balances: {},
    accounts_create: {
      required: %i[wallet count],
      optional: %i[work]
    },
    accounts_frontiers: {},
    accounts_pending: {
      required: %i[count],
      optional: %i[threshold source include_active]
    }
  }
end

#proxy_paramsObject



3
4
5
# File 'lib/nano_rpc/methods/accounts_methods.rb', line 3

def proxy_params
  { accounts: :addresses }
end