Class: RaiblocksRpc::Node

Inherits:
Proxy
  • Object
show all
Defined in:
lib/raiblocks_rpc/proxies/node.rb

Instance Attribute Summary

Attributes inherited from Proxy

#m, #param_signature, #params

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RaiblocksRpc::Proxy

Instance Method Details

#proxy_methodsObject



3
4
5
6
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
# File 'lib/raiblocks_rpc/proxies/node.rb', line 3

def proxy_methods
  {
    bootstrap: { required: %i[address port] },
    bootstrap_any: nil,
    keepalive: { required: %i[address port] },
    work_peer_add: { required: %i[address port] },
    deterministic_key: { required: %i[seed index] },
    receive_minimum: nil,
    receive_minimum_set: { required: %i[amount] },
    representatives: nil,
    stop: nil,
    version: nil,
    peers: nil,
    work_peers: nil,
    work_peers_clear: nil,
    work_validate: { required: %i[work hash] },
    search_pending: { required: %i[wallet] },
    search_pending_all: nil,
    available_supply: nil,
    block: { required: %i[hash] },
    blocks: { required: %i[hashes] },
    blocks_info: { required: %i[hashes], optional: %i[pending source] },
    block_account: { required: %i[hash] },
    block_count: nil,
    block_count_type: nil,
    unchecked: { required: %i[count] },
    unchecked_clear: nil,
    unchecked_get: { required: %i[hash] },
    unchecked_keys: { required: %i[key count] },
    payment_wait: { required: %i[account amount timeout] }
  }
end