/** * @fileoverview chainweb_send - POST a pre-signed transaction after preflight. * * Security invariant: the server NEVER accepts private keys. The caller must * provide a `{cmd, hash, sigs}` tuple produced by their signing toolchain. * The server runs a local preflight and refuses to POST /send if the * preflight returns `status: "failure"`. */ import { z } from 'zod'; import type { ChainwebClient } from '../client/fetch.js'; export declare const SendInputShape: { chainId: z.ZodString; signedTx: z.ZodObject<{ cmd: z.ZodString; hash: z.ZodString; sigs: z.ZodArray>; }, z.core.$strip>; }; export declare const SendInputSchema: z.ZodObject<{ chainId: z.ZodString; signedTx: z.ZodObject<{ cmd: z.ZodString; hash: z.ZodString; sigs: z.ZodArray>; }, z.core.$strip>; }, z.core.$strip>; export interface SendResult { requestKey: string; preflight: { ok: boolean; gasUsed: number; }; } export interface SendToolConfig { client: ChainwebClient; } export declare function createSendTool(config: SendToolConfig): (args: unknown) => Promise<{ content: SendResult[]; }>; //# sourceMappingURL=send.d.ts.map