get Custom
Suspended generic function that calls a custom JSON-RPC API method with the given name and parameters.
This function is useful for calling JSON-RPC APIs that are not yet supported by this library.
Return
a T object containing the result of the JSON-RPC API method.
Parameters
function
The name of the JSON-RPC API method to call.
params
The parameters to pass to the JSON-RPC API method.
Throws
if an error occurs while decoding the JSON response or if the response is an error.