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
# File 'lib/nano_rpc/methods/node_methods.rb', line 7

def proxy_methods # rubocop:disable Metrics/MethodLength
  {
    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]
    },
    blocks: {
      required: %i[hashes]
    },
    blocks_info: {
      required: %i[hashes],
      optional: %i[pending source balance]
    },
    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: {},
    confirmation_history: {},
    confirmation_info: {
      required: %i[root],
      optional: %i[contents representatives]
    },
    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]
    },
    process: {
      required: %i[block],
      optional: %i[force subtype]
    },
    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]
    },
    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]
    },
    unchecked_keys: {
      required: %i[key 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