Skip to content

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

Source

tevm-request-handler/JsonRpcReturnTypeFromMethod.ts:13