• Handles Ethereum JSON-RPC requests for the given method and payload. Executes the appropriate signing function based on the method and returns the signature or transaction response.

    Returns

    • A Promise that resolves to the requested data type (ETHSignature or ETHTxRes).

    Throws

    • Throws an error if the requested method is not supported or if there's an issue during execution.

    Type Parameters

    • T = string

    Parameters

    • {: ETHHandlerReq

      signer, payload } - Request object containing signer and payload data.

    Returns Promise<T>

Generated using TypeDoc