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