Module: NanoRpc::WalletMethods

Included in:
Wallet
Defined in:
lib/nano_rpc/methods/wallet_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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/nano_rpc/methods/wallet_methods.rb', line 7

def proxy_methods # rubocop:disable Metrics/MethodLength
  {
    account_create: {
      optional: %i[work]
    },
    account_list: {},
    account_remove: {
      required: %i[account]
    },
    accounts_create: {
      required: %i[count],
      optional: %i[work]
    },
    password_change: {
      required: %i[password]
    },
    password_enter: {
      required: %i[password]
    },
    password_valid: {},
    payment_begin: {},
    payment_end: {
      required: %i[account]
    },
    payment_init: {},
    receive: {
      required: %i[account block],
      optional: %i[work]
    },
    search_pending: {},
    send: {
      required: %i[wallet source destination amount],
      optional: %i[id work]
    },
    wallet_add: {
      required: %i[key],
      optional: %i[work]
    },
    wallet_add_watch: {
      required: %i[accounts]
    },
    wallet_balances: {
      optional: %i[threshold]
    },
    wallet_change_seed: {
      required: %i[seed],
      optional: %i[count]
    },
    wallet_contains: {
      required: %i[account]
    },
    wallet_destroy: {},
    wallet_export: {},
    wallet_frontiers: {},
    wallet_history: {
      optional: %i[modified_since]
    },
    wallet_info: {},
    wallet_ledger: {},
    wallet_locked: {},
    wallet_pending: {
      required: %i[count],
      optional: %i[threshold source include_active]
    },
    wallet_representative: {},
    wallet_representative_set: {
      required: %i[representative],
      optional: %i[update_existing_accounts]
    },
    wallet_republish: {
      required: %i[count]
    },
    wallet_work_get: {},
    work_get: {
      required: %i[account]
    },
    work_set: {}
  }
end

#proxy_paramsObject



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

def proxy_params
  { wallet: :id }
end