MCPcopy Create free account
hub / github.com/CPChain/chain / SupportedModules

Method SupportedModules

api/rpc/client.go:256–262  ·  view source on GitHub ↗

SupportedModules calls the rpc_modules method, retrieving the list of APIs that are available on the server.

()

Source from the content-addressed store, hash-verified

254// SupportedModules calls the rpc_modules method, retrieving the list of
255// APIs that are available on the server.
256func (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.
265func (c *Client) Close() {

Callers

nothing calls this directly

Calls 1

CallContextMethod · 0.95

Tested by

no test coverage detected