GitHub

MethodNotFound

API reference for MethodNotFound.

Attributes

AttributeTypeDescription
CODEint = METHOD_NOT_FOUND_ERROR_CODE

Functions

__init__

__init__(message, data=None) -> None
ParameterTypeDescription
messagestr
dataJsonValue = None

to_wire

to_wire() -> JsonRpcErrorObject

Returns JsonRpcErrorObject

def to_wire(self) -> JsonRpcErrorObject:
    error: JsonRpcErrorObject = {"code": self.code, "message": self.message}
    if self.data is not None:
        error["data"] = self.data
    return error