/** * EIP-7702 批量换手(一卖多买) * * 在一笔交易中完成: * 1. 主钱包卖币 → 获得 OKB * 2. OKB 多跳转账 → 中间钱包1 → 中间钱包2 → 分发者 * 3. 分发者按比例转账给多个买家 * 4. 各买家买币 * * 支持 FLAP 内盘、V2 和 V3 三种交易类型 * 只生成签名,由调用方决定如何提交 */ import type { BundleBatchSwapParams, BundleSwapResult } from './types.js'; /** * 批量换手(一卖多买)- 生成签名后的交易 * * @param params 批量换手参数 * @returns 签名后的交易和元数据 * * @example * // FLAP 内盘一对多换手 * const result = await bundleBatchSwap({ * sellerPrivateKey: '0x...', * buyerPrivateKeys: ['0x...', '0x...'], * tokenAddress: '0x...', * sellAmount: '100', * tradeType: 'FLAP', * }); */ export type { BundleBatchSwapParams } from './types.js'; export declare function bundleBatchSwap(params: BundleBatchSwapParams): Promise;