Module: NanoRpc::NodeMethods

Included in:
Node
Defined in:
lib/nano_rpc/methods/node_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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# File 'lib/nano_rpc/methods/node_methods.rb', line 7

def proxy_methods # rubocop:disable Metrics/MethodLength
  {
    active_difficulty: {},
    available_supply: {},
    block: {
      required: %i[hash]
    },
    block_account: {
      required: %i[hash]
    },
    block_confirm: {
      required: %i[hash]
    },
    block_count: {},
    block_count_type: {},
    block_create: {
      required: %i[type key representative source],
      optional: %i[work json_block]
    },
    block_hash: {
      optional: %i[json_block]
    },
    block_info: {
      required: %i[hash],
      optional: %i[json_block]
    },
    blocks: {
      required: %i[hashes]
    },
    blocks_info: {
      required: %i[hashes],
      optional: %i[pending source balance json_block]
    },
    bootstrap: {
      required: %i[address port]
    },
    bootstrap_any: {},
    bootstrap_lazy: {
      required: %i[hash],
      optional: %i[force]
    },
    bootstrap_status: {},
    chain: {
      required: %i[block count],
      optional: %i[offset reverse]
    },
    confirmation_active: {
      optional: %i[announcements]
    },
    confirmation_height_currently_processing: {},
    confirmation_history: {},
    confirmation_info: {
      required: %i[root],
      optional: %i[contents representatives json_block]
    },
    confirmation_quorum: {
      optional: %i[peer_details]
    },
    deterministic_key: {
      required: %i[seed index]
    },
    frontier_count: {},
    history: {
      required: %i[hash count]
    },
    keepalive: {
      required: %i[address port]
    },
    key_create: {},
    key_expand: {
      required: %i[key]
    },
    krai_from_raw: {
      required: %i[amount]
    },
    krai_to_raw: {
      required: %i[amount]
    },
    mrai_from_raw: {
      required: %i[amount]
    },
    mrai_to_raw: {
      required: %i[amount]
    },
    node_id: {},
    node_id_delete: {},
    payment_wait: {
      required: %i[account amount timeout]
    },
    peers: {
      optional: %i[peer_details]
    },
    pending_exists: {
      required: %i[hash],
      optional: %i[include_active include_only_confirmed]
    },
    process: {
      required: %i[block],
      optional: %i[force subtype json_block]
    },
    rai_from_raw: {
      required: %i[amount]
    },
    rai_to_raw: {
      required: %i[amount]
    },
    receive_minimum: {},
    receive_minimum_set: {
      required: %i[amount]
    },
    representatives: {},
    representatives_online: {},
    republish: {
      required: %i[hash],
      optional: %i[count sources destinations]
    },
    search_pending: {
      required: %i[wallet]
    },
    search_pending_all: {},
    sign: {
      optional: %i[account hash key wallet json_block]
    },
    stats: {
      required: %i[type]
    },
    stats_clear: {},
    stop: {},
    successors: {
      required: %i[block count],
      optional: %i[offset reverse]
    },
    unchecked: {
      required: %i[count]
    },
    unchecked_clear: {},
    unchecked_get: {
      required: %i[hash],
      optional: %i[json_block]
    },
    unchecked_keys: {
      required: %i[key count],
      optional: %i[json_block]
    },
    unopened: {
      optional: %i[account count]
    },
    uptime: {},
    version: {},
    wallet_create: {
      optional: %i[seed]
    },
    work_cancel: {
      required: %i[hash]
    },
    work_generate: {
      required: %i[hash],
      optional: %i[use_peers]
    },
    work_peer_add: {
      required: %i[address port]
    },
    work_peers: {},
    work_peers_clear: {},
    work_validate: {
      required: %i[work hash]
    }
  }
end

#proxy_paramsObject



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

def proxy_params
  {}
end