createExpressMiddleware(client
): RequestHandler
<ParamsDictionary
, any
, any
, ParsedQs
, Record
<string
, any
>>
Creates express middleware for a Tevm JSON-RPC server
Parameters
• client: Client
Returns
RequestHandler
<ParamsDictionary
, any
, any
, ParsedQs
, Record
<string
, any
>>
Example
After creating an express server it can be interacted with using any JSON-RPC client
including viem, ethers or the built in tevm client
Defined in
packages/server/src/adapters/createExpressMiddleware.js:34