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.

  • 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>

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