一台电脑使用多个钱包(多个账户)

中本聪SN-2002

我已经开始实现类似的功能。大体上和 Gavin 描述的一样。

I have the beginning of something like this. It's mostly like what Gavin described.

再补充一些 rpc 接口:

Some more rpc interface:

move

move

从一个内部账户转到另一个。我想空白账户名("")会是你的默认账户。如果你卖东西给某个用户,能执行 move "theiraccount" "" 123.45。

Move from one internal account to another. I think blank account name ("") will be your default account. If you sell something to a user, you could do move "theiraccount" "" 123.45.

这个操作叫 "move" 最合适吗?我避开了 "transfer",因它听起来太像发送一笔交易。

Is "move" the best name for this? I shied away from "transfer" because that sounds too close to sending a transaction.

我在考虑新增一个 getaccountaddress 函数,而不是重载 getnewaddress:

I'm thinking a new function getaccountaddress instead of overloading getnewaddress:

getaccountaddress

getaccountaddress

给你一个从 getnewaddress 分配的地址。它会一直返回同一个地址,直到该地址收到款项,然后再分配一个新地址。(它会自动完成我前段时间贴的示例代码所做的事)

Gives you an address allocated from getnewaddress . It'll keep giving the same address until something is received on the address, then it allocates a new address. (It automatically does what the sample code I posted some time ago did)

有了这些命令,在简单场景下,你能否无需自建数据库就实现自己的网站?

Would these commands make it possible in simple cases to implement your website without needing a database of your own?

译文校对、修订与纠错

当前版本尚未建立逐条校对状态记录。来源核验、历史审校与当前译文校对是不同事项。

查看历史审校与代表修订 →

译文内容版本:bde32dc2df6a。用于比对文本,不代表校对等级或更新时间。

准备纠错说明

请填写对应原文、现译文、建议译法和理由。复制后通过你联系本站作者的渠道提交;此处不会自动发送。

来源
英文原标题

Multiple Wallets, one computer (multiple accounts)

Bitcointalk · 原始链接 ↗ 记录编号 SN-2002

阅读字号

选择适合你的字号,之后阅读会继续使用。