SupportedModules calls the rpc_modules method, retrieving the list of APIs that are available on the server.
()
| 254 | // SupportedModules calls the rpc_modules method, retrieving the list of |
| 255 | // APIs that are available on the server. |
| 256 | func (c *Client) SupportedModules() (map[string]string, error) { |
| 257 | var result map[string]string |
| 258 | ctx, cancel := context.WithTimeout(context.Background(), subscribeTimeout) |
| 259 | defer cancel() |
| 260 | err := c.CallContext(ctx, &result, "rpc_modules") |
| 261 | return result, err |
| 262 | } |
| 263 | |
| 264 | // Close closes the client, aborting any in-flight requests. |
| 265 | func (c *Client) Close() { |
nothing calls this directly
no test coverage detected