UNPKG

ox

Version:

Ethereum Standard Library

24 lines 925 B
import * as z from 'zod/mini'; /** JSON-RPC error object schema. */ export declare const ErrorObject: z.ZodMiniObject<{ code: z.ZodMiniNumber<number>; message: z.ZodMiniString<string>; data: z.ZodMiniOptional<z.ZodMiniUnknown>; }, z.core.$strip>; /** JSON-RPC response schema. */ export declare const RpcResponse: z.ZodMiniUnion<readonly [z.ZodMiniObject<{ result: z.ZodMiniUnknown; error: z.ZodMiniOptional<z.ZodMiniUndefined>; id: z.ZodMiniNumber<number>; jsonrpc: z.ZodMiniLiteral<"2.0">; }, z.core.$strip>, z.ZodMiniObject<{ error: z.ZodMiniObject<{ code: z.ZodMiniNumber<number>; message: z.ZodMiniString<string>; data: z.ZodMiniOptional<z.ZodMiniUnknown>; }, z.core.$strip>; result: z.ZodMiniOptional<z.ZodMiniUndefined>; id: z.ZodMiniNumber<number>; jsonrpc: z.ZodMiniLiteral<"2.0">; }, z.core.$strip>]>; //# sourceMappingURL=RpcResponse.d.ts.map