Module: TezosClient::RpcInterface::Monitor
- Included in:
- TezosClient::RpcInterface
- Defined in:
- lib/tezos_client/rpc_interface/monitor.rb
Instance Method Summary collapse
Instance Method Details
#bootstrapped ⇒ Object
8 9 10 11 12 |
# File 'lib/tezos_client/rpc_interface/monitor.rb', line 8 def bootstrapped res = get "/monitor/bootstrapped" res["timestamp"] = DateTime.parse(res["timestamp"]) res end |
#monitor_block(&block_reader) ⇒ Object
14 15 16 |
# File 'lib/tezos_client/rpc_interface/monitor.rb', line 14 def monitor_block(&block_reader) monitor("monitor/heads/main", &block_reader) end |