Skip to content

JsonRpcRequestTypeFromMethod

JsonRpcRequestTypeFromMethod<TMethod>: EthRequestType & TevmRequestType & AnvilRequestType & DebugRequestType[TMethod]

Utility type to get the request type given a method name

Type Parameters

TMethod extends keyof EthRequestType | keyof TevmRequestType | keyof AnvilRequestType | keyof DebugRequestType

Example

type BlockNumberRequestType = JsonRpcRequestTypeFromMethod<'eth_blockNumber'>

Defined in

packages/actions/src/tevm-request-handler/JsonRpcRequestTypeFromMethod.ts:13