Participate in Base's GTM by betting if today's 18:00 UTC garden temperature will be higher or lower than yesterday's, sharing winnings from the pot.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install prediction-market或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install prediction-market⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/prediction-market/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
Play the daily garden temperature prediction market on Base.
Address: 0xA3F09E6792351e95d1fd9d966447504B5668daF6 Chain: Base (chainId 8453) RPC: https://mainnet.base.org
Bet on whether today's 18:00 UTC garden temperature will be HIGHER or LOWER than yesterday's.
cast call 0xA3F09E6792351e95d1fd9d966447504B5668daF6 \
"getMarketState()(uint256,int256,uint256,uint256,uint256,bool,uint256,uint256)" \
--rpc-url https://mainnet.base.org
Returns (in order):
round (uint256): Current round numberbaseline (int256): Yesterday's temp (÷100 for °C, e.g., 1210 = 12.10°C)higherTotal (uint256): ETH on HIGHER (wei)lowerTotal (uint256): ETH on LOWER (wei)rollover (uint256): Pot from ties (wei)isBettingOpen (bool): Can bet now?secondsUntilClose (uint256): Time until betting closessecondsUntilSettle (uint256): Time until settlement# Yesterday's baseline (divide by 100 for °C)
cast call 0xA3F09E6792351e95d1fd9d966447504B5668daF6 "yesterdayTemp()(int256)" --rpc-url https://mainnet.base.org
# Is betting open?
cast call 0xA3F09E6792351e95d1fd9d966447504B5668daF6 "bettingOpen()(bool)" --rpc-url https://mainnet.base.org
# Pool sizes (wei)
cast call 0xA3F09E6792351e95d1fd9d966447504B5668daF6 "higherPool()(uint256)" --rpc-url https://mainnet.base.org
cast call 0xA3F09E6792351e95d1fd9d966447504B5668daF6 "lowerPool()(uint256)" --rpc-url https://mainnet.base.org
# Check my bet (returns higherAmt, lowerAmt in wei)
cast call 0xA3F09E6792351e95d1fd9d966447504B5668daF6 "getMyBet(address)(uint256,uint256)" YOUR_ADDRESS --rpc-url https://mainnet.base.org
# Minimum bet (wei)
cast call 0xA3F09E6792351e95d1fd9d966447504B5668daF6 "minBet()(uint256)" --rpc-url https://mainnet.base.org
| Function | Selector | |----------|----------| | betHigher() | 0xb8b2e5f7 | | betLower() | 0x7a5ce755 |
Bet HIGHER with 0.01 ETH:
{
"to": "0xA3F09E6792351e95d1fd9d966447504B5668daF6",
"data": "0xb8b2e5f7",
"value": "10000000000000000",
"chainId": 8453
}
Bet LOWER with 0.01 ETH:
{
"to": "0xA3F09E6792351e95d1fd9d966447504B5668daF6",
"data": "0x7a5ce755",
"value": "10000000000000000",
"chainId": 8453
}
Submit via Bankr:
Submit this transaction:
{"to":"0xA3F09E6792351e95d1fd9d966447504B5668daF6","data":"0xb8b2e5f7","value":"10000000000000000","chainId":8453}
# Bet HIGHER
cast send 0xA3F09E6792351e95d1fd9d966447504B5668daF6 "betHigher()" \
--value 0.01ether --rpc-url https://mainnet.base.org --private-key $KEY
# Bet LOWER
cast send 0xA3F09E6792351e95d1fd9d966447504B5668daF6 "betLower()" \
--value 0.01ether --rpc-url https://mainnet.base.org --private-key $KEY
| ETH | Wei | |-----|-----| | 0.001 | 1000000000000000 | | 0.005 | 5000000000000000 | | 0.01 | 10000000000000000 | | 0.05 | 50000000000000000 | | 0.1 | 100000000000000000 |
Minimum bet: 0.001 ETH = 1000000000000000 wei
| Time (UTC) | Event | |------------|-------| | After settlement | Betting opens | | 12:00 | Betting closes | | 18:00 | Settlement + payouts |
# Pseudocode for an agent betting strategy
# 1. Check if betting is open
is_open = call("bettingOpen()")
if not is_open:
print("Betting closed, wait for next round")
return
# 2. Get market state
state = call("getMarketState()")
baseline = state[1] / 100 # Convert to °C
higher_pool = state[2]
lower_pool = state[3]
# 3. Check weather forecast (external API)
forecast = get_weather_forecast()
expected_temp = forecast["temp_18utc"]
# 4. Decide bet
if expected_temp > baseline + 0.5: # Confident it's warmer
side = "HIGHER"
elif expected_temp < baseline - 0.5: # Confident it's colder
side = "LOWER"
else:
print("Too close to call, skip this round")
return
# 5. Consider odds (bet against crowd for better payout)
if side == "HIGHER" and higher_pool > lower_pool * 2:
print("Pool is lopsided, might skip or bet small")
# 6. Place bet
amount = 0.01 # ETH
submit_bet(side, amount)
event BetPlaced(uint256 indexed round, address indexed bettor, bool isHigher, uint256 amount, int256 baseline);
event RoundSettled(uint256 indexed round, int256 todayTemp, int256 yesterdayTemp, bool higherWon, bool wasTie, uint256 totalPot, uint256 houseFee);
event WinningsClaimed(uint256 indexed round, address indexed bettor, uint256 amount);
The temperature comes from Netclawd's SensorNet:
0xf873D168e2cD9bAC70140eDD6Cae704Ed05AdEe0Built by potdealer x Ollie for Netclawd
安装 Garden Temp Market (GTM) 后,可以对 AI 说这些话来触发它
Help me get started with Garden Temp Market (GTM)
Explains what Garden Temp Market (GTM) does, walks through the setup, and runs a quick demo based on your current project
Use Garden Temp Market (GTM) to participate in Base's GTM by betting if today's 18:00 UTC garden te...
Invokes Garden Temp Market (GTM) with the right parameters and returns the result directly in the conversation
What can I do with Garden Temp Market (GTM) in my finance & investment workflow?
Lists the top use cases for Garden Temp Market (GTM), with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/prediction-market/ 目录(个人级,所有项目可用),或 .claude/skills/prediction-market/(项目级)。重启 AI 客户端后,用 /prediction-market 主动调用,或让 AI 根据上下文自动发现并使用。
Garden Temp Market (GTM) 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Garden Temp Market (GTM) 可免费安装使用。请查阅仓库了解许可证信息。
Participate in Base's GTM by betting if today's 18:00 UTC garden temperature will be higher or lower than yesterday's, sharing winnings from the pot.
Garden Temp Market (GTM) 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my finance & investment tasks using Garden Temp Market (GTM)
Identifies repetitive steps in your workflow and sets up Garden Temp Market (GTM) to handle them automatically