Skip to content

Commit a4bdd1e

Browse files
committed
finish rawtx
1 parent 200ecfc commit a4bdd1e

File tree

1 file changed

+32
-48
lines changed

1 file changed

+32
-48
lines changed

docs/nodes/usage/mvc-cli/raw-transactions.md

+32-48
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,7 @@ signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","re
2222

2323
## createrawtransaction
2424

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.
4026

4127
```text
4228
createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,"data":"hex",...} ( locktime )
@@ -77,11 +63,11 @@ Examples:
7763

7864
## decoderawtransaction
7965

80-
解码一个原始交易,输出json。
66+
Return a JSON object representing the serialized, hex-encoded transaction.
8167

82-
参数
68+
Param
8369

84-
- `hexstring` (string, required) 原始交易的十六进制字符串。
70+
- `hexstring` (string, required)
8571

8672
```text
8773
decoderawtransaction "hexstring"
@@ -136,9 +122,9 @@ Examples:
136122

137123
## decodescript
138124

139-
解码一个脚本,输出json。
125+
Decode a hex-encoded script.
140126

141-
参数
127+
Param
142128

143129
- `hexstring` (string, required) 脚本的十六进制字符串。
144130

@@ -170,12 +156,12 @@ Examples:
170156

171157
## fundrawtransaction
172158

173-
为原始交易添加输入,用于支付手续费,返回一个完整的原始交易。
159+
Add inputs to a transaction until it has enough in value to meet its out value.
174160

175-
参数
161+
Param
176162

177-
- `hexstring` (string, required) 原始交易的十六进制字符串。
178-
- `options` (object, optional) 选项。
163+
- `hexstring` (string, required)
164+
- `options` (object, optional)
179165

180166
```text
181167
fundrawtransaction "hexstring" ( options )
@@ -235,12 +221,12 @@ Send the transaction
235221

236222
## getrawtransaction
237223

238-
从节点获取原始交易。
224+
Return the raw transaction data.
239225

240-
参数
226+
Param
241227

242-
- `txid` (string, required) 交易id。
243-
- `verbose` (bool, optional, default=false) 详细程度。false返回生交易,true返回详细信息。
228+
- `txid` (string, required)
229+
- `verbose` (bool, optional, default=false)
244230

245231
```text
246232
getrawtransaction "txid" ( verbose )
@@ -313,13 +299,13 @@ Examples:
313299

314300
## sendrawtransaction
315301

316-
广播原始交易。
302+
Submits raw transaction (serialized, hex-encoded) to local node and network.
317303

318-
参数
304+
Param
319305

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

324310
```text
325311
sendrawtransaction "hexstring" ( allowhighfees dontcheckfee )
@@ -352,17 +338,15 @@ As a json rpc call
352338

353339
## sendrawtransactions
354340

355-
广播多个原始交易。批量广播接口性能更好。需要保证交易的依赖关系,祖先交易在前,子交易在后。
356-
357-
参数:
341+
Submits raw transactions (serialized, hex-encoded) to local node and network.
358342

359-
交易列表
343+
Param:
360344

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

367351
```text
368352
sendrawtransactions [{"hex": "hexstring", "allowhighfees": true|false, "dontcheckfee": true|false, "listunconfirmedancestors": true|false, "config: " <json string> }, ...]
@@ -466,14 +450,14 @@ Examples:
466450

467451
## signrawtransaction
468452

469-
签名原始交易inputs。
453+
Sign inputs for raw transaction (serialized, hex-encoded).
470454

471-
参数
455+
Param
472456

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

478462
```text
479463
signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )

0 commit comments

Comments
 (0)