SN-3834 已核对来源,附原文与上下文。
一个使用 0.3.18 新的基于账户命令的伪代码示例。
Some sample pseudocode using the new Accounts based commands in 0.3.18.
print "send to " + getaccountaddress(username) + " to fund your account"
print "send to " + getaccountaddress(username) + " to fund your account"
print "balance: " + getbalance(username, 0)
print "balance: " + getbalance(username, 0)
print "available balance: " + getbalance(username, 6)
print "available balance: " + getbalance(username, 6)
// if you make a sale, move the money from their account to your "" account
// if you make a sale, move the money from their account to your "" account
if (move(username, "", amount, 6, "purchased item"))
if (move(username, "", amount, 6, "purchased item"))
SendTheGoods()
SendTheGoods()
// withdrawal
// withdrawal
sendfrom(username, bitcoinaddress, amount, 6, "withdrawal by user")
sendfrom(username, bitcoinaddress, amount, 6, "withdrawal by user")
你能用 listtransactions(username) 向他们展示其近期交易列表。
You can use listtransactions(username) to show them a list of their recent transactions.