回复:一台电脑使用多个钱包
原始发布页
打开来源页面查看 1 个交叉存档
下面是如何使用基于账户的命令的一些伪代码。它确实让网站集成容易多了。
print "发送到 " + getaccountaddress(username) + " 以为你的账户充值" print "余额:" + getbalance(username, 0) print "可用余额:" + 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)
英文原文
展开英文原文
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)