JsonRpcReturnTypeFromMethod
JsonRpcReturnTypeFromMethod<
TMethod
>:EthReturnType
&TevmReturnType
&AnvilReturnType
&DebugReturnType
[TMethod
]
Utility type to get the return type given a method name
Example
type BlockNumberReturnType = JsonRpcReturnTypeFromMethod<'eth_blockNumber'>
Type Parameters
• TMethod extends keyof EthReturnType
| keyof TevmReturnType
| keyof AnvilReturnType
| keyof DebugReturnType
Defined in
procedures/src/tevm-request-handler/JsonRpcReturnTypeFromMethod.ts:13