Skip to content

EIP1193RequestFn

EIP1193RequestFn<TRpcSchema>: <TRpcSchemaOverride, TParameters, _ReturnType>(args, options?) => Promise<_ReturnType>

Type Parameters

TRpcSchema extends RpcSchema | undefined = undefined

Type Parameters

TRpcSchemaOverride extends RpcSchemaOverride | undefined = undefined

TParameters extends EIP1193Parameters<DerivedRpcSchema<TRpcSchema, TRpcSchemaOverride>> = EIP1193Parameters<DerivedRpcSchema<TRpcSchema, TRpcSchemaOverride>>

_ReturnType = DerivedRpcSchema<TRpcSchema, TRpcSchemaOverride> extends RpcSchema ? Extract<DerivedRpcSchema<TRpcSchema, TRpcSchemaOverride>[number], object>["ReturnType"] : unknown

Parameters

args: TParameters

options?: EIP1193RequestOptions

Returns

Promise<_ReturnType>

Defined in

eip1193/EIP1993RequestFn.ts:14