JsonRpcRequestTypeFromMethod
JsonRpcRequestTypeFromMethod<
TMethod
>:EthRequestType
&TevmRequestType
&AnvilRequestType
&DebugRequestType
[TMethod
]
Utility type to get the request type given a method name
Example
type BlockNumberRequestType = JsonRpcRequestTypeFromMethod<'eth_blockNumber'>
Type parameters
Parameter |
---|
TMethod extends keyof EthRequestType | keyof TevmRequestType | keyof AnvilRequestType | keyof DebugRequestType |
Source
tevm-request-handler/JsonRpcRequestTypeFromMethod.ts:13
Generated using typedoc-plugin-markdown and TypeDoc