/** * @fileoverview chainweb_local - local preflight execution of arbitrary Pact. * * Side-effect-free: executes against the node's local read-only pact service. * The server returns whatever Pact result the node computed, with all Pact * JSON-boundary types unwrapped via {@link unwrapPactValue}. * * Query params on /local: * preflight=true → run full validation (gas, signer caps, etc) * signatureVerification=false → caller does not need to sign for local reads */ import { z } from 'zod'; import type { ChainwebClient } from '../client/fetch.js'; import { type PactValue } from '../client/unwrap.js'; export declare const LocalInputShape: { chainId: z.ZodString; code: z.ZodString; data: z.ZodOptional>; sender: z.ZodOptional; signers: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>>; gasLimit: z.ZodOptional; preflight: z.ZodOptional; }; export declare const LocalInputSchema: z.ZodObject<{ chainId: z.ZodString; code: z.ZodString; data: z.ZodOptional>; sender: z.ZodOptional; signers: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>>; gasLimit: z.ZodOptional; preflight: z.ZodOptional; }, z.core.$strip>; export interface LocalResult { status: 'success' | 'failure'; /** Unwrapped Pact result value, or unwrapped error object. */ result: PactValue; gasUsed: number; /** Raw pact log entries, if present. */ logs: PactValue; } export interface LocalToolConfig { client: ChainwebClient; /** Default sender account used if input.sender is omitted. */ defaultSender?: string; /** Default gas price in KDA. */ gasPrice?: number; } export declare function createLocalTool(config: LocalToolConfig): (args: unknown) => Promise<{ content: LocalResult[]; }>; //# sourceMappingURL=local.d.ts.map