Defipoly — DeFiPoly
v1.0.0Play Defipoly — a Monopoly-inspired DeFi game on Solana. Buy properties, earn dAIly DPOLY yield, shield agAInst theft, steal from players and the bank, roll dice for bonuses. Your 代理 plays autonomously with a funded SOL wallet.
运行时依赖
安装命令
点击复制技能文档
Defipoly 游戏代理 您是 Defipoly 的玩家。Defipoly 是一个受 Monopoly 启发的 DeFi 游戏,运行在 Solana 上,您可以在这里购买房产槽位,赚取每日 DPOLY 代币收益,保护您的房产免受盗窃,偷取其他玩家或银行的资产,并掷骰子获得折扣和奖励。 快速开始 前提条件:您的钱包需要 SOL(用于交易费用)和 DPOLY 代币(用于购买房产)。您可以在 https://defipoly.app 获取 DPOLY 代币。在运行任何命令之前,请确保依赖项已安装: 如果 [ ! -d "{skillDir}/node_modules" ]; then cd {skillDir} && npm install; fi 如何玩 所有游戏操作都使用 agent-play.js CLI 脚本。它自动处理身份验证、交易签名和提交。 node {skillDir}/scripts/agent-play.js [args] 钱包 脚本自动在 {skillDir}/.wallet.json 中发现一个钱包。不需要环境变量,如果该文件存在。要设置一个钱包,请使用 setup 命令(见下面的首次设置流程)。 可选的环境变量覆盖(优先于 .wallet.json): WALLET_FILE — Solana JSON 密钥对文件的路径 WALLET_PRIVATE_KEY — 基于 58 编码的私钥 BACKEND_URL — 默认为 https://api.defipoly.app SOLANA_RPC — 默认为 https://api.mainnet-beta.solana.com 命令 钱包设置(运行一次): node {skillDir}/scripts/agent-play.js setup # 生成新的钱包 node {skillDir}/scripts/agent-play.js setup # 导入现有的钱包 余额检查(无需钱包文件): node {skillDir}/scripts/agent-play.js balance [address] # 检查 SOL + DPOLY 余额 node {skillDir}/scripts/agent-play.js scan-wallets [addr2] ... # 检查多个钱包 身份验证(自动处理,但可以手动运行): node {skillDir}/scripts/agent-play.js auth 游戏操作(构建 -> 签名 -> 提交一次调用): node {skillDir}/scripts/agent-play.js init # 初始化玩家账户(一次) node {skillDir}/scripts/agent-play.js buy [slots=1] # 购买房产槽位 node {skillDir}/scripts/agent-play.js sell # 出售房产槽位 node {skillDir}/scripts/agent-play.js shield [hours=24] # 激活盗窃保护 node {skillDir}/scripts/agent-play.js claim # 声称累积的 DPOLY 奖励 node {skillDir}/scripts/agent-play.js bank-steal # 尝试银行偷窃 node {skillDir}/scripts/agent-play.js steal # 尝试玩家偷窃 骰子(每 6 小时掷一次,获得折扣和奖励): node {skillDir}/scripts/agent-play.js dice-roll # 掷骰子(6 小时冷却) node {skillDir}/scripts/agent-play.js dice-status # 检查当前骰子折扣/奖励 node {skillDir}/scripts/agent-play.js dice-buy [slots] # 使用骰子折扣购买 node {skillDir}/scripts/agent-play.js dice-claim-snake-eyes # 声称蛇眼代币奖励 node {skillDir}/scripts/agent-play.js dice-claim-defense # 声称 12 小时偷窃保护 node {skillDir}/scripts/agent-play.js dice-claim-compound # 声称奖励,奖励增加 10% node {skillDir}/scripts/agent-play.js dice-claim-cooldown-reset # 重置所有购买冷却 node {skillDir}/scripts/agent-play.js dice-claim-steal-cooldown-reset # 重置所有偷窃冷却 只读(无需钱包): node {skillDir}/scripts/agent-play.js status # 玩家个人资料(房产、收入、冷却) node {skillDir}/scripts/agent-play.js properties # 所有 22 个房产 node {skillDir}/scripts/agent-play.js properties 0 # 特定房产 node {skillDir}/scripts/agent-play.js config # 游戏配置 node {skillDir}/scripts/agent-play.js leaderboard # 顶级玩家 输出格式 操作:OK buy propertyId=0 slots=2 sig=5xK3... 或 FAIL <错误消息> 只读:JSON 输出到标准输出 退出代码 0 = 成功,1 = 失败 示例 # 检查可用的房产 node {skillDir}/scripts/agent-play.js properties # 检查您的状态 node {skillDir}/scripts/agent-play.js status # 购买 2 个房产 0 的槽位(棕色 - 地中海大道) node {skillDir}/scripts/agent-play.js buy 0 2 # 为房产 0 保护 24 小时 node {skillDir}/scripts/agent-play.js shield 0 24 # 声称累积的奖励 node {skillDir}/scripts/agent-play.js claim # 尝试银行偷窃房产 1 node {skillDir}/scripts/agent-play.js bank-steal 1 # 从另一个玩家偷窃 node {skillDir}/scripts/agent-play.js steal 3 # 掷骰子(每 6 小时) node {skillDir}/scripts/agent-play.js dice-roll # 检查您掷出的骰子 node {skillDir}/scripts/agent-play.js dice-status # 使用骰子折扣购买房产 5 node {skillDir}/scripts/agent-play.js dice-buy 5 # 声称蛇眼奖励(如果您掷出了 1+1) node {skillDir}/scripts/agent-play.js dice-claim-snake-eyes 22 个房产 有 22 个房产,分为 8 个颜色集。完成一个完整的集可以获得收益奖励。