# 【Sui生态系列——Momentum自动化交易脚本教程】 **Published by:** [0xFantasy](https://paragraph.com/@0xfantasy/) **Published on:** 2025-04-16 **URL:** https://paragraph.com/@0xfantasy/sui-momentum ## Content Subscribe 昨天更新了一下momentum的代码,现在可以通过和命令行交互来指定交易的地址和交易对,方便没有代码基础的朋友运行,同时也完善了多地址的管理和更多信息的展示。趁此机会,写一个稍微详细一点的教程。 预览 🛠️ 五分钟快速入门 1️⃣ 注册 Momentum 打开链接注册并登录 Momentum 链接钱包 完成注册 2️⃣ 拉取脚本代码 打开终端 mac上是terminal(command + 空格, 输入terminal即可找到) win上是cmd(win + r, 输入cmd,回车之后即可进入cmd) 进入你想存放代码的路径,下图以桌面为例 进入桌面 拉取代码 在终端上执行 git clone https://github.com/fcmfcm1999/momentum.git 克隆代码 进入项目文件夹 cd momentum 进入项目文件夹 3️⃣ 安装依赖 ⚠️ 请确保你的电脑已经安装了 Node.js 环境如果未安装,可以自行谷歌搜索 “Node.js 安装教程”,或询问 ChatGPT 获取帮助。 4️⃣ 配置 Sui 信息 编辑 src/data/config.json 文件,填入你的 Sui 私钥和交易对信息,如果你不打算一次全部地址一起跑的话,只填写可以不填写tokenPairs字段,这些字段可以等我们运行程序的时候通过交互来自行选择: { "shuffleAccounts": true, "shuffleTokenPairs": true, "accounts": [ { "nickname": "Sui-1", // Sui地址的备注,方便区分 "suiPrivateKey": "suiprivkey...", // 你的 Sui 私钥 "tokenPairs": [ // 可以不填 { "name": "USDC_USDT", // 推荐使用稳定币对 "swapRound": 3, // 交易回合数 "amount": 15 // 每回合交易金额(建议先小额测试) } ] } ] } 基础版完成这些配置即可 基础配置 5️⃣ 启动脚本 node src/index.js ## Publication Information - [0xFantasy](https://paragraph.com/@0xfantasy/): Publication homepage - [All Posts](https://paragraph.com/@0xfantasy/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@0xfantasy): Subscribe to updates