RPC Methods

errors.custom()

JSON-RPC XML-RPC

Simply raises a custom exception

No documentation available yet

errors.unserializable_result()

JSON-RPC XML-RPC

Return an instance of python builtin Fraction class, which cannot be serialized

No documentation available yet

math.add(termA, termB)

JSON-RPC XML-RPC

Add termA and termB, end return the result

Parameters:
  • termA (int, float) - First term
  • termB (int, float) - Second term
Return:
  • int, float - Sum of the two terms

math.divide(dividend, divisor)

JSON-RPC XML-RPC

Divide the dividend by the divisor

Parameters:
  • dividend Number
  • divisor Number
Return:
  • Result of the division

system.listMethods(kwargs)

JSON-RPC XML-RPC

Returns a list of all methods available in the current entry point

Parameters:
  • kwargs
No documentation available yet

system.methodHelp(method_name, kwargs)

JSON-RPC XML-RPC

Returns the documentation of the given method name.

Parameters:
  • method_name Name of a method available for current entry point (and protocol)
  • kwargs :return: Documentation text for the RPC method
Return:
  • Documentation text for the RPC method

system.methodSignature(method_name, kwargs)

JSON-RPC XML-RPC

Returns an array describing the signature of the given method name.

The result is an array with: - Return type as first elements - Types of method arguments from element 1 to N

Parameters:
  • method_name Name of a method available for current entry point (and protocol)
  • kwargs :return: An array of arrays describing types of return values and method arguments
Return:
  • An array of arrays describing types of return values and method arguments

system.multicall(calls, kwargs)

XML-RPC

Call multiple RPC methods at once.

Parameters:
  • calls An array of struct like {"methodName": string, "params": array }
  • kwargs Internal data
No documentation available yet

util.printContentType(kwargs)

JSON-RPC XML-RPC

Inspect request to extract the Content-Type heaser if present. This method demonstrate how a RPC method can access the request object.

Parameters:
  • kwargs Dict with current request, protocol and entry_point information.
Return:
  • The Content-Type string for incoming request