Bitcointalk · Multiple Wallets, one computer (multiple accounts)

中本聪,2010 年 10 月 24 日

SN-2002 已核对来源,附原文与上下文。

阅读语言
中文译文

我已然有了类似东西的开头。大体上和 Gavin 描述的一样。

再补充一些 rpc 接口:

move 从一个内部账户转到另一个。我想空白账户名("")会是你的默认账户。倘若你卖东西给某个用户,能够执行 move "theiraccount" "" 123.45。 "move" 是这个名字的最佳选择吗?我避开了 "transfer",因它听起来太像发送一笔交易。

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

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

这些命令能不能让简单场景下不用自建数据库就实现你的网站?

ORIGINAL · 英文原文
I have the beginning of something like this.  It's mostly like what Gavin described.

Some more rpc interface:

move <fromaccount> <toaccount> <amount>
   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.
   Is "move" the best name for this?  I shied away from "transfer" because that sounds too close to sending a transaction.

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

getaccountaddress <account>
   Gives you an address allocated from getnewaddress <account>.  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?
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-2002