Bitcointalk · Multiple Wallets, one computer (multiple accounts)

中本聪,2010 年 10 月 25 日

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

阅读语言
中文译文

这是一段伪代码,演示怎么使用基于账户的命令。它确实让网站整合容易多了。

print "send to " + getaccountaddress(username) + " to fund your account" print "balance: " + getbalance(username, 0) print "available balance: " + getbalance(username, 6)

// 如果达成一笔销售,把钱从他们的账户里移出 move(username, "", amount, 6)

// 提现 sendfrom(username, bitcoinaddress, amount, 6)

ORIGINAL · 英文原文
Here's some pseudocode of how you would use the account based commands.  It sure makes website integration a lot easier.

print "send to " + getaccountaddress(username) + " to fund your account"
print "balance: " + getbalance(username, 0)
print "available balance: " + getbalance(username, 6)

// if you make a sale, move the money out of their account
move(username, "", amount, 6)

// withdrawal
sendfrom(username, bitcoinaddress, amount, 6)
上下文
← 上一条 SN-2005 · 当前 下一条 → 在档案中查看完整主题串 →
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-2005