Client returns an RPC client for a node.
()
| 468 | |
| 469 | // Client returns an RPC client for a node. |
| 470 | func (n Node) Client() (*rpchttp.HTTP, error) { |
| 471 | return rpchttp.New(fmt.Sprintf("http://127.0.0.1:%v", n.ProxyPort), "/websocket") |
| 472 | } |
| 473 | |
| 474 | // Stateless returns true if the node is either a seed node or a light node |
| 475 | func (n Node) Stateless() bool { |
no outgoing calls