Bitcointalk · CLI bitcoin generation

中本聪,2010 年 5 月 26 日

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

阅读语言
中文译文

或者一个可选参数指定该交易之后的最小区块数(getallreceived 1 为当前行为,或直接 getallreceived,getallreceived 5 给偏执狂,getallreceived 0 为即时确认)?

是的,实际上它就是这样。getallreceived 0 就能满足你的要求。(现在它已更名为 listreceivedbyaddress 0)默认是 1 个确认,但我认为实际上大多数数字商品和服务可以 0 确认。如你所说,如果你需要多于 0 个确认,可以显示两个数字:未确认余额和可用余额,这样他们立刻就能看到交易已经通过。

listreceivedbyaddress [minconf=1] [includeempty=false] [minconf] 是款项被计入所需的最少确认数。 [includeempty] 是否包含尚未收到任何付款的地址。 返回一个对象数组,包含: "address" : 接收地址 "label" : 接收地址的标签 "amount" : 该地址收到的总金额 "confirmations" : 所含最近一笔交易的确认数

或者,如果你用用户名给地址贴标签,就用 listreceivedbylabel。

到目前为止,我集中精力于面向 web 商家的函数,无头硬币生成机的远程管理功能还没怎么顾上。

ORIGINAL · 英文原文
An optional parameter to specify the minimum number of blocks after that transaction (getallreceived 1 for current behavior, or just getallreceived, getallreceived 5 for the paranoid, getallreceived 0 for instant confirms)?
Yeah, that actually is what it is.  getallreceived 0 should do what you want.  (now it's renamed to listreceivedbyaddress 0)  The default is 1 confirmation, but I think in reality most digital goods and services can be 0 confirmations.  Like you say, if you need more than 0 confirmations, you could show two numbers, unconfirmed and available balance, so they immediately see their transaction went through.

listreceivedbyaddress [minconf=1] [includeempty=false]
[minconf] is the minimum number of confirmations before payments are included.
[includeempty] whether to include addresses that haven't received any payments.
Returns an array of objects containing:
  "address" : receiving address
  "label" : the label of the receiving address
  "amount" : total amount received by the address
  "confirmations" : number of confirmations of the most recent transaction included

or listreceivedbylabel if you're labelling addresses with their username.

So far I've concentrated on functions for web merchants, not so much on stuff for remote management of headless coin generators yet.
上下文
← 上一条 SN-0543 · 当前 下一条 → 在档案中查看完整主题串 →
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-0543