@agentek/tools
Version:
Blockchain tools for AI agents
18 lines • 843 B
TypeScript
import type { BaseTool } from "../client.js";
/**
* A tool that performs token swaps across multiple networks (Mainnet, Optimism,
* Arbitrum and Base) via the 0x/Matcha aggregator (v2 AllowanceHolder API).
*
* If a wallet client is available, it will execute the swap immediately.
* If no wallet client is present, it will return a RequestIntent.
*/
export declare const createMatchSwapTool: ({ zeroxApiKey, swapFeeRecipient, swapFeeBps, swapFeeToken, }: {
zeroxApiKey: string;
/** Address to receive integrator/affiliate fees. */
swapFeeRecipient?: string;
/** Fee in basis points (e.g. 10 = 0.1%). */
swapFeeBps?: number;
/** Which token the fee is taken from: "sellToken" or "buyToken". Default: "sellToken". */
swapFeeToken?: "sellToken" | "buyToken";
}) => BaseTool;
//# sourceMappingURL=intents.d.ts.map