@@ -22,21 +22,7 @@ signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","re
22
22
23
23
## createrawtransaction
24
24
25
- 创建一个生交易。指定Utxo,创建新的输出。
26
-
27
- 参数:
28
-
29
- inputs:输入的utxo。
30
- - ` txid ` (string, required) Utxo的txid。
31
- - ` vout ` (numeric, required) Utxo的vout。
32
- - ` sequence ` (numeric, optional) Utxo的sequence。
33
-
34
- outputs:输出。
35
-
36
- - ` address ` (string, required) 输出地址。value是输出金额。
37
- - ` data ` (string, optional) 输出数据。
38
-
39
- locktime:锁定时间。
25
+ Create a transaction spending the given inputs and creating new outputs.
40
26
41
27
``` text
42
28
createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,"data":"hex",...} ( locktime )
@@ -77,11 +63,11 @@ Examples:
77
63
78
64
## decoderawtransaction
79
65
80
- 解码一个原始交易,输出json。
66
+ Return a JSON object representing the serialized, hex-encoded transaction.
81
67
82
- 参数 :
68
+ Param :
83
69
84
- - ` hexstring ` (string, required) 原始交易的十六进制字符串。
70
+ - ` hexstring ` (string, required)
85
71
86
72
``` text
87
73
decoderawtransaction "hexstring"
@@ -136,9 +122,9 @@ Examples:
136
122
137
123
## decodescript
138
124
139
- 解码一个脚本,输出json。
125
+ Decode a hex-encoded script.
140
126
141
- 参数 :
127
+ Param :
142
128
143
129
- ` hexstring ` (string, required) 脚本的十六进制字符串。
144
130
@@ -170,12 +156,12 @@ Examples:
170
156
171
157
## fundrawtransaction
172
158
173
- 为原始交易添加输入,用于支付手续费,返回一个完整的原始交易。
159
+ Add inputs to a transaction until it has enough in value to meet its out value.
174
160
175
- 参数 :
161
+ Param :
176
162
177
- - ` hexstring ` (string, required) 原始交易的十六进制字符串。
178
- - ` options ` (object, optional) 选项。
163
+ - ` hexstring ` (string, required)
164
+ - ` options ` (object, optional)
179
165
180
166
``` text
181
167
fundrawtransaction "hexstring" ( options )
@@ -235,12 +221,12 @@ Send the transaction
235
221
236
222
## getrawtransaction
237
223
238
- 从节点获取原始交易。
224
+ Return the raw transaction data.
239
225
240
- 参数 :
226
+ Param :
241
227
242
- - ` txid ` (string, required) 交易id。
243
- - ` verbose ` (bool, optional, default=false) 详细程度。false返回生交易,true返回详细信息。
228
+ - ` txid ` (string, required)
229
+ - ` verbose ` (bool, optional, default=false)
244
230
245
231
``` text
246
232
getrawtransaction "txid" ( verbose )
@@ -313,13 +299,13 @@ Examples:
313
299
314
300
## sendrawtransaction
315
301
316
- 广播原始交易。
302
+ Submits raw transaction (serialized, hex-encoded) to local node and network.
317
303
318
- 参数 :
304
+ Param :
319
305
320
- - ` hexstring ` (string, required) 原始交易的十六进制字符串。
321
- - ` allowhighfees ` (bool, optional, default=false) 是否允许高手续费。
322
- - ` dontcheckfee ` (bool, optional, default=false) 是否检查手续费。
306
+ - ` hexstring ` (string, required)
307
+ - ` allowhighfees ` (bool, optional, default=false)
308
+ - ` dontcheckfee ` (bool, optional, default=false)
323
309
324
310
``` text
325
311
sendrawtransaction "hexstring" ( allowhighfees dontcheckfee )
@@ -352,17 +338,15 @@ As a json rpc call
352
338
353
339
## sendrawtransactions
354
340
355
- 广播多个原始交易。批量广播接口性能更好。需要保证交易的依赖关系,祖先交易在前,子交易在后。
356
-
357
- 参数:
341
+ Submits raw transactions (serialized, hex-encoded) to local node and network.
358
342
359
- 交易列表
343
+ Param:
360
344
361
- - ` hex ` (string, required) 原始交易的十六进制字符串。
362
- - ` allowhighfees ` (bool, optional, default=false) 是否允许高手续费。
363
- - ` dontcheckfee ` (bool, optional, default=false) 是否检查手续费。
364
- - ` listunconfirmedancestors ` (bool, optional, default=false) 是否列出未确认的祖先交易。
365
- - ` config ` (string, optional) 配置信息。
345
+ - ` hex ` (string, required)
346
+ - ` allowhighfees ` (bool, optional, default=false)
347
+ - ` dontcheckfee ` (bool, optional, default=false)
348
+ - ` listunconfirmedancestors ` (bool, optional, default=false)
349
+ - ` config ` (string, optional)
366
350
367
351
``` text
368
352
sendrawtransactions [{"hex": "hexstring", "allowhighfees": true|false, "dontcheckfee": true|false, "listunconfirmedancestors": true|false, "config: " <json string> }, ...]
@@ -466,14 +450,14 @@ Examples:
466
450
467
451
## signrawtransaction
468
452
469
- 签名原始交易inputs。
453
+ Sign inputs for raw transaction (serialized, hex-encoded).
470
454
471
- 参数 :
455
+ Param :
472
456
473
- - ` hexstring ` (string, required) 原始交易的十六进制字符串。
474
- - ` prevtxs ` (array, optional) 交易的输入。
475
- - ` privatekeys ` (array, optional) 私钥。
476
- - ` sighashtype ` (string, optional) 签名类型。
457
+ - ` hexstring ` (string, required)
458
+ - ` prevtxs ` (array, optional)
459
+ - ` privatekeys ` (array, optional)
460
+ - ` sighashtype ` (string, optional)
477
461
478
462
``` text
479
463
signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )
0 commit comments