跳至内容
大螃嗨
好记性不如烂笔头
用户工具
登录
站点工具
搜索
工具
显示页面
修订记录
反向链接
最近更改
媒体管理器
网站地图
登录
>
最近更改
媒体管理器
网站地图
您的足迹:
bitcoinweb服务策略
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
This section describes how typical web site code running on a web server uses the JSON-RPC API to keep track of customers' accounts. * Customer creates an account on the website: web server either assigns them a unique customer id number or uses their email address or other unique identifier, calls getaccountaddress "userid" and tells the customer to send to that address to fund their account. * Customer receives coins to fund their account: web server isn't involved. * Customer is shown their current balance: getbalance "userid" 6 to get their 'confirmed' balance, and subtracts it from getbalance "userid" 0 to get their 'unconfirmed' balance. * Show the customer an **itemized list** of transactions: listtransactions "userid" * Customer sends coins to another bitcoin address: sendfrom "userid" <address> <amount> * Customer transfers coins to another customer: move "userid1" "userid2" <amount> * You make a sale, paid for with bitcoins in the customer's account: move "userid" "" <amount> 6 "purchased item", and if it succeeds, send them the product. * Customer is charged a fee for use of the service: move "userid" "FEES" <amount> (using special accounts like "FEES" can make your application's logic much simpler) * Customer purchases bitcoins from you: move "AVAILABLE" "userid" <amount> (assuming the bitcoins you are selling are kept track of in an "AVAILABLE" account)
bitcoinweb服务策略.txt
· 最后更改: 2018/07/09 14:41 由
螃蟹
页面工具
显示页面
修订记录
反向链接
回到顶部