Bitcointalk

CLI bitcoin generation

中本聪 · 2010 年 5 月 26 日

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

阅读语言
其他参与者原话molybdenum原帖 ↗

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

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)?

中本聪回应

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

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]

listreceivedbyaddress [minconf=1] [includeempty=false]

[minconf] 是款项被计入所需的最少确认数。

[minconf] is the minimum number of confirmations before payments are included.

[includeempty] 是否包含尚未收到任何付款的地址。

[includeempty] whether to include addresses that haven't received any payments.

返回一个对象数组,包含:

Returns an array of objects containing:

"address" : 接收地址

"address" : receiving address

"label" : 接收地址的标签

"label" : the label of the receiving address

"amount" : 该地址收到的总金额

"amount" : total amount received by the address

"confirmations" : 所含最近一笔交易的确认数

"confirmations" : number of confirmations of the most recent transaction included

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

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

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

So far I've concentrated on functions for web merchants, not so much on stuff for remote management of headless coin generators yet.

上下文
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-0543

阅读字号

选择适合你的字号,之后阅读会继续使用。