Commit 7b4bb24a authored by 张振华's avatar 张振华

Update 接口文档与代码对比工具说明.md

parent 5a6cfb9d
## 1 工具需要做的配置及使用
## 1 工具需要做的配置及使用
......@@ -133,7 +133,7 @@ cids = ['93', '94', '100','99','98','97','96','102','105','104','108','110','115
![交易接口的文档格式](./image/tx_doc.png)
以交易接口为例,格式特点如下:
```json
**请求报文[rpc/types/CreateTx]:**
**请求报文<!--[rpc/types/CreateTx]-->:**
json
{
"jsonrpc":"2.0",
......@@ -168,7 +168,7 @@ json
|execer|string|-|执行器名称,如果是构造平行链的基础代币,此处要填写user.p.xxx.coins
```
(1)“请求报文[rpc/types/CreateTx]”关键字说明了这是一个请求接口,消息参数参见 chain33/rpc/types包里的CreateTx定义。
(1)“请求报文<!--[rpc/types/CreateTx]-->”关键字说明了这是一个请求接口,消息参数参见 chain33/rpc/types包里的CreateTx定义。
(2)"method":"Chain33.CreateRawTransaction" 说明了具体的接口名称CreateRawTransaction。
(3)"参数说明",是文档中描述的CreateTx消息的字段定义。工具根据“----|----|----”特征认为是文档对字段说明的开始,并扫描连续的多个字段名及类型,直到遇到空行结束。
......@@ -189,7 +189,7 @@ json
```json
#### 1.1.2 交易签名 SignRawTx
**请求报文[types/ReqSignRawTx]:**
**请求报文<!--[types/ReqSignRawTx]-->:**
` ` `json
{
"jsonrpc":"2.0",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment