原始文献 / 论坛帖 / Re: Multiple Wallets, one computer

Re: Multiple Wallets, one computer

Bitcointalk · 2010-10-25 16:53:53 UTC

AuthorSatoshi Nakamoto
TitleRe: Multiple Wallets, one computer
Date2010-10-25 16:53:53 UTC
ForumBitcointalk · 原文

下面是基于账户的命令用法伪代码。网站集成确实容易多了。

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)

英文原文

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)