Bitcointalk

Multiple Wallets, one computer (multiple accounts)

中本聪 · 2010 年 10 月 24 日

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?

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

阅读字号

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